Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143994673
D52670.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
444 B
Referenced Files
None
Subscribers
None
D52670.diff
View Options
diff --git a/sbin/mksnap_ffs/mksnap_ffs.c b/sbin/mksnap_ffs/mksnap_ffs.c
--- a/sbin/mksnap_ffs/mksnap_ffs.c
+++ b/sbin/mksnap_ffs/mksnap_ffs.c
@@ -150,7 +150,7 @@
errx(1, "%s: Not a mount point", stfsbuf.f_mntonname);
}
if (cp != stfsbuf.f_mntonname)
- strlcpy(stfsbuf.f_mntonname, cp, sizeof(stfsbuf.f_mntonname));
+ memmove(stfsbuf.f_mntonname, cp, strlen(cp) + 1);
/*
* Having verified access to the directory in which the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 4, 2:48 AM (2 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28429710
Default Alt Text
D52670.diff (444 B)
Attached To
Mode
D52670: mksnap_ffs: fix running under chroot
Attached
Detach File
Event Timeline
Log In to Comment