mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 07:45:47 +00:00
filesystem -> file system
This commit is contained in:
2
UPGRADE
2
UPGRADE
@@ -65,4 +65,4 @@ o Upgrading from a version prior to 1.5:
|
|||||||
that if have a means of distributing sudo you distribute the
|
that if have a means of distributing sudo you distribute the
|
||||||
new binaries first, then the new sudoers file (or you can leave
|
new binaries first, then the new sudoers file (or you can leave
|
||||||
sudoers as is and sudo will fix the permissions itself as long
|
sudoers as is and sudo will fix the permissions itself as long
|
||||||
as sudoers is on a local filesystem).
|
as sudoers is on a local file system).
|
||||||
|
2
sudo.c
2
sudo.c
@@ -851,7 +851,7 @@ check_sudoers()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Fix the mode and group on sudoers file from old default.
|
* Fix the mode and group on sudoers file from old default.
|
||||||
* Only works if filesystem is readable/writable by root.
|
* Only works if file system is readable/writable by root.
|
||||||
*/
|
*/
|
||||||
if ((rootstat = stat_sudoers(_PATH_SUDOERS, &statbuf)) == 0 &&
|
if ((rootstat = stat_sudoers(_PATH_SUDOERS, &statbuf)) == 0 &&
|
||||||
SUDOERS_UID == statbuf.st_uid && SUDOERS_MODE != 0400 &&
|
SUDOERS_UID == statbuf.st_uid && SUDOERS_MODE != 0400 &&
|
||||||
|
4
visudo.c
4
visudo.c
@@ -443,11 +443,11 @@ main(argc, argv)
|
|||||||
/*
|
/*
|
||||||
* Now that we have a sane stmp file (parses ok) it needs to be
|
* Now that we have a sane stmp file (parses ok) it needs to be
|
||||||
* rename(2)'d to sudoers. If the rename(2) fails we try using
|
* rename(2)'d to sudoers. If the rename(2) fails we try using
|
||||||
* mv(1) in case stmp and sudoers are on different filesystems.
|
* mv(1) in case stmp and sudoers are on different file systems.
|
||||||
*/
|
*/
|
||||||
if (rename(stmp, sudoers)) {
|
if (rename(stmp, sudoers)) {
|
||||||
if (errno == EXDEV) {
|
if (errno == EXDEV) {
|
||||||
warnx("%s and %s not on the same filesystem, using mv to rename",
|
warnx("%s and %s not on the same file system, using mv to rename",
|
||||||
stmp, sudoers);
|
stmp, sudoers);
|
||||||
|
|
||||||
/* Build up argument vector for the command */
|
/* Build up argument vector for the command */
|
||||||
|
Reference in New Issue
Block a user