summaryrefslogtreecommitdiffstats
path: root/mount/sundries.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:41 +0100
committerKarel Zak2006-12-07 00:25:41 +0100
commiteb63b9b8f4cecb34c2478282567862bc48ef256d (patch)
tree99243f8eecb44c2bb6a559982b99c680fcb649e7 /mount/sundries.c
parentImported from util-linux-2.9v tarball. (diff)
downloadkernel-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.c5
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);