X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authfile.c;h=83477e4c904b4a54e65d6f4890478cca7ca11a69;hp=f1ac1509379c1ba15ee4250f89b4ca1113189fbd;hb=dc8959a3cb5615448ea9307a3277e608ffd8a6dd;hpb=a76e90fbf8a269250cd749e18ed42415e51f9f45;ds=inline 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;