]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/gssd/krb5_util.c
Use lstat rather than stat in gssd_find_existing_krb5_ccache
[nfs-utils.git] / utils / gssd / krb5_util.c
index 096f6cf80812bf901c7c47db8ce45aa18218ab3c..6af286975c445f01c38904fc3c64b9248d784632 100644 (file)
@@ -191,7 +191,7 @@ gssd_find_existing_krb5_ccache(uid_t uid, struct dirent **d)
                                 namelist[i]->d_name);
                        snprintf(statname, sizeof(statname),
                                 "%s/%s", ccachedir, namelist[i]->d_name);
-                       if (stat(statname, &tmp_stat)) {
+                       if (lstat(statname, &tmp_stat)) {
                                printerr(0, "Error doing stat on file '%s'\n",
                                         statname);
                                free(namelist[i]);