mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Unbreak on amd64.
This commit is contained in:
parent
ff41d4973b
commit
1a6c5d9fac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152523
@ -91,8 +91,8 @@ main(int argc, char *argv[])
|
|||||||
iov = NULL;
|
iov = NULL;
|
||||||
iovlen = 0;
|
iovlen = 0;
|
||||||
dev = 0;
|
dev = 0;
|
||||||
uid = -1;
|
uid = (uid_t)-1;
|
||||||
gid = -1;
|
gid = (gid_t)-1;
|
||||||
caseopt = 0;
|
caseopt = 0;
|
||||||
file_mode = 0;
|
file_mode = 0;
|
||||||
dir_mode = 0;
|
dir_mode = 0;
|
||||||
@ -125,7 +125,6 @@ main(int argc, char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
mntflags = error = 0;
|
mntflags = error = 0;
|
||||||
uid = gid = -1;
|
|
||||||
|
|
||||||
caseopt = SMB_CS_NONE;
|
caseopt = SMB_CS_NONE;
|
||||||
|
|
||||||
@ -231,9 +230,9 @@ main(int argc, char *argv[])
|
|||||||
if (smb_getextattr(mount_point, &einfo) == 0)
|
if (smb_getextattr(mount_point, &einfo) == 0)
|
||||||
errx(EX_OSERR, "can't mount on %s twice", mount_point);
|
errx(EX_OSERR, "can't mount on %s twice", mount_point);
|
||||||
*/
|
*/
|
||||||
if (uid == (size_t)-1)
|
if (uid == (uid_t)-1)
|
||||||
uid = st.st_uid;
|
uid = st.st_uid;
|
||||||
if (gid == (size_t)-1)
|
if (gid == (gid_t)-1)
|
||||||
gid = st.st_gid;
|
gid = st.st_gid;
|
||||||
if (file_mode == 0 )
|
if (file_mode == 0 )
|
||||||
file_mode = st.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
|
file_mode = st.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
|
||||||
|
Loading…
Reference in New Issue
Block a user