mirror of
https://github.com/samba-team/samba.git
synced 2025-01-01 21:18:10 +03:00
r19016: As per Samba4 coding standards, turn tabs into spaces
This commit is contained in:
parent
685304e574
commit
3f59c8ef0c
@ -80,16 +80,16 @@ DIR *opendir(const char *dname)
|
||||
return NULL;
|
||||
}
|
||||
if (fstat(d->fd, &sb) < 0) {
|
||||
close(d->fd);
|
||||
free(d);
|
||||
return NULL;
|
||||
}
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
close(d->fd);
|
||||
free(d);
|
||||
errno = ENOTDIR;
|
||||
return NULL;
|
||||
}
|
||||
close(d->fd);
|
||||
free(d);
|
||||
return NULL;
|
||||
}
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
close(d->fd);
|
||||
free(d);
|
||||
errno = ENOTDIR;
|
||||
return NULL;
|
||||
}
|
||||
d->ofs = 0;
|
||||
d->seekpos = 0;
|
||||
d->nbytes = 0;
|
||||
|
@ -82,16 +82,16 @@ DIR *opendir(const char *dname)
|
||||
return NULL;
|
||||
}
|
||||
if (fstat(d->fd, &sb) < 0) {
|
||||
close(d->fd);
|
||||
free(d);
|
||||
return NULL;
|
||||
}
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
close(d->fd);
|
||||
free(d);
|
||||
errno = ENOTDIR;
|
||||
return NULL;
|
||||
}
|
||||
close(d->fd);
|
||||
free(d);
|
||||
return NULL;
|
||||
}
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
close(d->fd);
|
||||
free(d);
|
||||
errno = ENOTDIR;
|
||||
return NULL;
|
||||
}
|
||||
d->ofs = 0;
|
||||
d->seekpos = 0;
|
||||
d->nbytes = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user