Lines Matching defs:path
191 char *path, *p, newpath[ MAXPATHLEN ], line[ MAXLINELEN ];
201 path = _PATH_ATALKDCONF;
203 path = cf;
207 if ( stat( path, &st ) == 0 ) {
209 LOG(log_info, logtype_atalkd, "%s not writable, won't rewrite", path );
215 if (( p = strrchr( path, '/' )) == NULL ) {
218 sprintf( newpath, "%.*s/%s", (int)(p - path), path, _PATH_ATALKDTMP );
229 if (( conf = fopen( path, "r" )) == NULL && cf ) {
230 LOG(log_error, logtype_atalkd, "%s: %s", path, strerror(errno) );
301 if ( rename( newpath, path ) < 0 ) {
302 LOG(log_error, logtype_atalkd, "rename %s to %s: %s", newpath, path, strerror(errno) );