On Tue, Dec 07, 2004 at 02:54:50PM +0000, Michael Hudson wrote: > Is that really the best way to check for root? It may be, I guess, > but I'd have expected os.geteuid() to be more reliable... Ah yes, I suppose it is. I'll change it tomorrow night if no Unix-guru steps up with an alternative solution. > Or is it os.getuid()? I always get confused by these functions... Based on my reading of the difference between geteuid and getuid, I'd go for geteuid. Cheers, Johannes
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4