"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/fs.c" between
vnstat-2.4.tar.gz and vnstat-2.5.tar.gz

About: vnStat is a console-based network traffic monitor (using the /proc filesystem).

fs.c  (vnstat-2.4):fs.c  (vnstat-2.5)
skipping to change at line 232 skipping to change at line 232
printf("Error (debug): chown() \"%s\": %s \n", entryname, strerror(errno)); printf("Error (debug): chown() \"%s\": %s \n", entryname, strerror(errno));
} else { } else {
if (debug) if (debug)
printf("\"%s\" chown completed\n", entryn ame); printf("\"%s\" chown completed\n", entryn ame);
} }
} }
close(file_fd); close(file_fd);
} }
closedir(d); closedir(d);
close(dir_fd);
}
int getdirowner(const char *dir, uid_t *uid, gid_t *gid)
{
struct stat statbuf;
if (!direxists(dir)) {
return 0;
}
if (stat(dir, &statbuf) != 0) {
if (debug)
printf("Error (debug): stat() \"%s\": %s\n", dir, strerro
r(errno));
return 0;
}
*uid = statbuf.st_uid;
*gid = statbuf.st_gid;
return 1;
} }
 End of changes. 1 change blocks. 
22 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)