svn commit: trunk/busybox/util-linux
vda at busybox.net
vda at busybox.net
Mon Dec 24 04:11:59 PST 2007
Author: vda
Date: 2007-12-24 04:11:57 -0800 (Mon, 24 Dec 2007)
New Revision: 20672
Log:
umount: fix fallout from stack reduction change
Modified:
trunk/busybox/util-linux/umount.c
Changeset:
Modified: trunk/busybox/util-linux/umount.c
===================================================================
--- trunk/busybox/util-linux/umount.c 2007-12-23 02:36:51 UTC (rev 20671)
+++ trunk/busybox/util-linux/umount.c 2007-12-24 12:11:57 UTC (rev 20672)
@@ -62,7 +62,7 @@
if (opt & OPT_ALL)
bb_error_msg_and_die("cannot open %s", bb_path_mtab_file);
} else {
- while (getmntent_r(fp, &me, path, sizeof(path))) {
+ while (getmntent_r(fp, &me, path, PATH_MAX)) {
/* Match fstype if passed */
if (fstype && match_fstype(&me, fstype))
continue;
@@ -89,7 +89,7 @@
// Do we already know what to umount this time through the loop?
if (m)
- safe_strncpy(path, m->dir, sizeof(path));
+ safe_strncpy(path, m->dir, PATH_MAX);
// For umount -a, end of mtab means time to exit.
else if (opt & OPT_ALL)
break;
More information about the busybox-cvs
mailing list