Comment 15 for bug 276472

Revision history for this message
Stefan Bader (smb) wrote : Re: cp -p on CIFS mount does not preserve timestamp

Setting this back to triaged as the following is still failing on 2.6.30-999-generic:

#> ls -l
total 4
-rw-r--r-- 1 stefan stefan 6 2009-06-19 10:18 a
-rw-r--r-- 1 stefan stefan 0 2009-06-19 10:18 b

#> sudo mount -tcifs -ocredentials=../<cred> //<server>/public /mnt
#> mkdir /mnt/Test
#> cp -a * /mnt/Test/
cp: setting permissions for `/mnt/Test/a': Permission denied
cp: setting permissions for `/mnt/Test/b': Permission denied
#> ls -la /mnt/Test/
total 4
drwxr-xr-x 2 stefan stefan 0 2009-06-19 10:26 .
drwxr-xr-x 9 stefan users 0 2009-06-19 10:26 ..
-rwx------ 1 stefan stefan 6 2009-06-19 10:26 a
-rw------- 1 stefan stefan 0 2009-06-19 10:18 b

So, access rights seem to change (execute bit for file is set and group and other rights get dropped) and the timestamp is only used for the empy file.