s3-sysquotas: correctly restore path when finding mount point
authorUri Simchoni <uri@samba.org>
Fri, 7 Oct 2016 08:05:07 +0000 (11:05 +0300)
committerJeremy Allison <jra@samba.org>
Sat, 8 Oct 2016 03:22:25 +0000 (05:22 +0200)
commitb3d938c9c03e8b726e966ccb979b09bd21e89f32
treeec61495e255cedce8c601355588a90827412a122
parent06281e8f1b912540a8cc2a79497b074dbe559d53
s3-sysquotas: correctly restore path when finding mount point

When traversing the path backwards to find the mount point, if the
root '/' is reached, then the character to be restored is not a '/'.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12273

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Oct  8 05:22:25 CEST 2016 on sn-devel-144
source3/lib/sysquotas.c