X-Git-Url: http://www.average.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=authfile.c;h=83477e4c904b4a54e65d6f4890478cca7ca11a69;hb=67023db2952f4c3ec55a247dec401366f6b92e99;hp=f1ac1509379c1ba15ee4250f89b4ca1113189fbd;hpb=a76e90fbf8a269250cd749e18ed42415e51f9f45;p=pam_pcsc_cr.git diff --git a/authfile.c b/authfile.c index f1ac150..83477e4 100644 --- a/authfile.c +++ b/authfile.c @@ -43,7 +43,7 @@ int update_authfile(const char *fn, const char *tokenid, const char *id, struct stat st; int fd = fileno(fp); - if (!fstat(fd, &st)) { + if (fstat(fd, &st)) { eprint("fstat \"%s\" (fd %d) error: %s", fn, fd, strerror(errno)); st.st_size = 2047;