hi all
i am trying to find out how to find out how to check if a file has root user privileges, if it does then the user should receive an error.
i have so far found the stat() function where it could retrieve the uid but currently have no idea about how to implement it
because it just returns a 0 or a -1 what would this mean? -1 root??
help on this would be much appreciated