Changeset 2195
- Timestamp:
- 05/15/11 21:29:58 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/unix_utility.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/unix_utility.cc
r1976 r2195 1 1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2002 - 20 09PowerDNS.COM BV3 Copyright (C) 2002 - 2011 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 138 138 int newgid; 139 139 if(!(newgid=atoi(group.c_str()))) { 140 errno=0; 140 141 struct group *gr=getgrnam(group.c_str()); 141 142 if(!gr) { 142 theL()<<Logger::Critical<<"Unable to look up gid of group '"<<group<<"': "<< strerror(errno)<<endl;143 theL()<<Logger::Critical<<"Unable to look up gid of group '"<<group<<"': "<< (errno ? strerror(errno) : "not found") <<endl; 143 144 exit(1); 144 145 } … … 156 157 struct passwd *pw=getpwnam(username.c_str()); 157 158 if(!pw) { 158 theL()<<Logger::Critical<<"Unable to look up uid of user '"<<username<<"': "<< strerror(errno)<<endl;159 theL()<<Logger::Critical<<"Unable to look up uid of user '"<<username<<"': "<< (errno ? strerror(errno) : "not found") <<endl; 159 160 exit(1); 160 161 }