57f6993fcd
- update MASTER_SITES ok sturm@ william@
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
$OpenBSD: patch-src_do_c,v 1.9 2009/09/01 14:25:15 okan Exp $
|
|
--- src/do.c.orig Sun Mar 8 12:27:56 2009
|
|
+++ src/do.c Thu May 28 17:32:35 2009
|
|
@@ -3401,7 +3401,7 @@ if (MatchStringInFstab(mountpt))
|
|
CfLog(cfinform,"---------------------------------------------------","");
|
|
|
|
/* delete current fstab entry and unmount if necessary */
|
|
- snprintf(mountspec,CF_BUFSIZE,".+:%s",mountpt);
|
|
+ snprintf(mountspec,MAXPATHLEN,".+:%s",mountpt);
|
|
mntentry = LocateItemContainingRegExp(VMOUNTED,mountspec);
|
|
if (mntentry)
|
|
{
|
|
@@ -3410,7 +3410,7 @@ if (MatchStringInFstab(mountpt))
|
|
strcat(mountspec,mountpt);
|
|
}
|
|
else /* mountpt isn't mounted, so Unmount can use dummy host name */
|
|
- snprintf(mountspec,CF_BUFSIZE,"host:%s",mountpt);
|
|
+ snprintf(mountspec,MAXPATHLEN,"host:%s",mountpt);
|
|
|
|
/* delete current fstab entry and unmount if necessary (don't rmdir) */
|
|
cleaner.name = mountspec;
|