Changeset 10483
- Timestamp:
- Dec 5, 2006, 12:04:15 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r10469 r10483 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.6 1$ $Name: not supported by cvs2svn $7 * @date $Date: 2006-12-05 04:08:05 $6 * @version $Revision: 1.62 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2006-12-05 22:04:15 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 148 148 // find the first existing entry in the path (starting with the bare name) 149 149 realName = psStringCopy (name); 150 psTrace ("psModules.config", 5, "trying %s\n", realName);150 psTrace ("psModules.config", 8, "trying %s\n", realName); 151 151 152 152 int status = stat (realName, &filestat); 153 153 if (status == 0) { 154 if ((uid == filestat.st_uid) && (filestat.st_mode & S_IRUSR)) 154 if ((uid == filestat.st_uid) && (filestat.st_mode & S_IRUSR)) { 155 155 goto found; 156 if ((gid == filestat.st_gid) && (filestat.st_mode & S_IRGRP)) 156 } 157 if ((gid == filestat.st_gid) && (filestat.st_mode & S_IRGRP)) { 157 158 goto found; 158 if (filestat.st_mode & S_IROTH) 159 } 160 if (filestat.st_mode & S_IROTH) { 159 161 goto found; 162 } 160 163 } 161 164 psFree (realName); … … 169 172 realName = psStringCopy (configPath->data[i]); 170 173 psStringAppend (&realName, "/%s", name); 171 psTrace ("psModules.config", 5, "trying %s\n", realName);174 psTrace ("psModules.config", 8, "trying %s\n", realName); 172 175 173 176 status = stat (realName, &filestat); 174 177 if (status == 0) { 175 if ((uid == filestat.st_uid) && (filestat.st_mode & S_IRUSR)) 178 if ((uid == filestat.st_uid) && (filestat.st_mode & S_IRUSR)) { 176 179 goto found; 177 if ((gid == filestat.st_gid) && (filestat.st_mode & S_IRGRP)) 180 } 181 if ((gid == filestat.st_gid) && (filestat.st_mode & S_IRGRP)) { 178 182 goto found; 179 if (filestat.st_mode & S_IROTH) 183 } 184 if (filestat.st_mode & S_IROTH) { 180 185 goto found; 186 } 181 187 } 182 188 psFree (realName);
Note:
See TracChangeset
for help on using the changeset viewer.
