Lines Matching refs:d_name
263 if ( strcmp( deskp->d_name, "." ) == 0 ||
264 strcmp( deskp->d_name, ".." ) == 0 || strlen( deskp->d_name ) > 2 ) {
267 strcpy( modbuf, deskp->d_name );
270 if (( sub = opendir( deskp->d_name )) == NULL ) {
274 if ( strcmp( subp->d_name, "." ) == 0 ||
275 strcmp( subp->d_name, ".." ) == 0 ) {
279 strcat( modbuf, subp->d_name );
297 if ( chmod_acl( deskp->d_name, (DIRBITS | mode) & ~default_options.umask ) < 0 && errno != EPERM ) {
298 LOG(log_error, logtype_afpd, "setdeskmode: chmod %s: %s",fullpathname(deskp->d_name), strerror(errno) );
385 if ( *dirp->d_name == '.' && (!osx || dirp->d_name[1] != '_')) {
388 if (ostat(dirp->d_name, &st, vol_syml_opt(vol)) < 0 ) {
389 LOG(log_error, logtype_afpd, "setdirmode: stat %s: %s",dirp->d_name, strerror(errno) );
394 int setmode = (osx && *dirp->d_name == '.')?hf_mode:mode;
396 if (setfilmode(vol, dirp->d_name, setmode, &st) < 0) {
398 LOG(log_error, logtype_afpd, "setdirmode: chmod %s: %s",dirp->d_name, strerror(errno) );
437 if ( strcmp( deskp->d_name, "." ) == 0 ||
438 strcmp( deskp->d_name, ".." ) == 0 ||
439 strlen( deskp->d_name ) > 2 ) {
442 strcpy( modbuf, deskp->d_name );
445 if (( sub = opendir( deskp->d_name )) == NULL ) {
449 if ( strcmp( subp->d_name, "." ) == 0 ||
450 strcmp( subp->d_name, ".." ) == 0 ) {
454 strcat( modbuf, subp->d_name );
462 if ( chown( deskp->d_name, uid, gid ) < 0 && errno != EPERM ) {
464 deskp->d_name, strerror(errno) );
521 if ( *dirp->d_name == '.' && (!osx || dirp->d_name[1] != '_')) {
524 if (ostat(dirp->d_name, &st, vol_syml_opt(vol)) < 0 ) {
526 fullpathname(dirp->d_name), strerror(errno) );
530 if (ochown(dirp->d_name, uid, gid, vol_syml_opt(vol)) < 0 && errno != EPERM ) {
532 fullpathname(dirp->d_name), strerror(errno) );
582 name = entry->d_name;