chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e2e9329
)
mount: properly check return for mount_add_*
author
Dave Reisner
<d@falconindy.com>
Fri, 17 Feb 2012 17:17:49 +0000
(12:17 -0500)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 6 Mar 2012 01:16:41 +0000
(
02:16
+0100)
Previously, mount_load_etc_fstab() could never fail for reasons other
than a setmntent() or allocation failure.
src/mount.c
patch
|
blob
|
history
diff --git
a/src/mount.c
b/src/mount.c
index f80fcf5f4ab29c16052e0df8940fa41206e05210..982715a6dba86ddd2f34c6666ab53318de3f1c93 100644
(file)
--- a/
src/mount.c
+++ b/
src/mount.c
@@
-1578,7
+1578,7
@@
static int mount_load_etc_fstab(Manager *m) {
free(what);
free(where);
- if (
r
< 0)
+ if (
k
< 0)
r = k;
}