Package: cifs-utils
Version: 2:5.5-1
Severity: normal

Hi,

I have the following fstab entry:

//san/Homes/MVernon  /mnt/H    cifs credentials=/root/saccreds,user,noauto 0 0

mounting this as a user fails; that's not the problem here,
though. The problem is the error message:

error -1 (Unknown error 18446744073709551615) opening credential file 
/root/saccreds

open_cred_file fails to use errno when access() fails. The attached
trivial patch fixes this.

Regards,

Matthew

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cifs-utils depends on:
ii  libc6         2.13-33
ii  libkeyutils1  1.5.5-3
ii  libkrb5-3     1.10.1+dfsg-1
ii  libtalloc2    2.0.7+git20120207-1
ii  libwbclient0  2:3.6.6-2
ii  samba-common  2:3.6.6-2

Versions of packages cifs-utils recommends:
ii  keyutils  1.5.5-3
ii  winbind   2:3.6.6-2

Versions of packages cifs-utils suggests:
ii  smbclient  2:3.6.6-2

-- no debconf information
--- mount.cifs.c.orig	2012-07-17 12:50:20.537757775 +0100
+++ mount.cifs.c	2012-07-17 12:50:47.378322886 +0100
@@ -590,6 +590,7 @@
 	i = access(file_name, R_OK);
 	if (i) {
 		toggle_dac_capability(0, 0);
+		i = errno;
 		goto return_i;
 	}
 

Reply via email to