diff options
author | Karel Zak | 2006-12-07 00:25:41 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:41 +0100 |
commit | eb63b9b8f4cecb34c2478282567862bc48ef256d (patch) | |
tree | 99243f8eecb44c2bb6a559982b99c680fcb649e7 /mount/sundries.c | |
parent | Imported from util-linux-2.9v tarball. (diff) | |
download | kernel-qcow2-util-linux-eb63b9b8f4cecb34c2478282567862bc48ef256d.tar.gz kernel-qcow2-util-linux-eb63b9b8f4cecb34c2478282567862bc48ef256d.tar.xz kernel-qcow2-util-linux-eb63b9b8f4cecb34c2478282567862bc48ef256d.zip |
Imported from util-linux-2.10f tarball.
Diffstat (limited to 'mount/sundries.c')
-rw-r--r-- | mount/sundries.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mount/sundries.c b/mount/sundries.c index a844724e9..de17b256d 100644 --- a/mount/sundries.c +++ b/mount/sundries.c @@ -14,6 +14,7 @@ #include <mntent.h> /* for MNTTYPE_SWAP */ #include "fstab.h" #include "sundries.h" +#include "realpath.h" #include "nfsmount.h" #include "nls.h" @@ -224,9 +225,9 @@ canonicalize (const char *path) { if (streq(path, "none") || streq(path, "proc") || streq(path, "devpts")) return xstrdup(path); - canonical = xmalloc (PATH_MAX + 1); + canonical = xmalloc (PATH_MAX+2); - if (realpath (path, canonical)) + if (myrealpath (path, canonical, PATH_MAX+1)) return canonical; free(canonical); |