From: Sachin Prabhu Date: Wed, 19 Sep 2012 13:22:45 +0000 (-0700) Subject: cifs: Mangle string used for unc in /proc/mounts X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~66^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecdb69e2cc80cca77d6afcc0aca244b72cc5ee68;p=pandora-kernel.git cifs: Mangle string used for unc in /proc/mounts The string for "unc=" in /proc/mounts needs to be escaped. The current behaviour can create problems in cases when mounting a share starting with a number. example: >mount -t cifs -o username=test,password=x vm140-31:/17000-test /mnt >mount -o remount,password=x /mnt mount error: could not resolve address for vm140-31x00-test: Unknown error The sub-string "\170" which is part of the unc for the mount above in /proc/mounts is interpreted as character'x' in the case above. Escaping the string fixes the problem. Signed-off-by: Sachin Prabhu Reviewed-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed