The Samba-Bugzilla – Attachment 2812 Details for
Bug 4781
umount.cifs can't clean up /etc/mtab if trailing slashes used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
trim trailing slashes to canonicalize mountpoint names on unmount
cifs-umount-trailing-slashes.patch (text/plain), 559 bytes, created by
Steve Langasek
on 2007-07-12 01:49:30 UTC
(
hide
)
Description:
trim trailing slashes to canonicalize mountpoint names on unmount
Filename:
MIME Type:
Creator:
Steve Langasek
Created:
2007-07-12 01:49:30 UTC
Size:
559 bytes
patch
obsolete
>Index: samba-3.0.25b/source/client/umount.cifs.c >=================================================================== >--- samba-3.0.25b.orig/source/client/umount.cifs.c 2007-07-11 20:33:17.000000000 -0700 >+++ samba-3.0.25b/source/client/umount.cifs.c 2007-07-11 20:39:23.000000000 -0700 >@@ -342,6 +342,10 @@ > > /* fixup path if needed */ > >+ /* Trim any trailing slashes */ >+ while (mountpoint[strlen(mountpoint)-1] == '/') >+ mountpoint[strlen(mountpoint)-1] = '\0'; >+ > /* make sure that this is a cifs filesystem */ > rc = statfs(mountpoint, &statbuf); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4781
: 2812