Skip to content

Commit 9c040c7

Browse files
AZero13millert
authored andcommitted
Fix int/bool typos
1 parent fc8d67f commit 9c040c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/edit_open.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ switch_user_int(uid_t euid, gid_t egid, int ngroups, GETGROUPS_T *groups,
4040
{
4141
int serrno = errno;
4242
int ret = -1;
43-
debug_decl(switch_user, SUDO_DEBUG_EDIT);
43+
debug_decl(switch_user_int, SUDO_DEBUG_EDIT);
4444

4545
sudo_debug_printf(SUDO_DEBUG_INFO|SUDO_DEBUG_LINENO,
4646
"set uid:gid to %u:%u(%u)", (unsigned int)euid, (unsigned int)egid,
@@ -126,20 +126,20 @@ is_writable(const struct sudo_cred *user_cred, struct stat *sb)
126126
if (ISSET(sb->st_mode, S_IWOTH)) {
127127
sudo_debug_printf(SUDO_DEBUG_INFO|SUDO_DEBUG_LINENO,
128128
"directory is writable by other");
129-
debug_return_int(true);
129+
debug_return_bool(true);
130130
}
131131

132132
/* Group writable? */
133133
if (ISSET(sb->st_mode, S_IWGRP)) {
134134
if (group_matches(sb->st_gid, user_cred)) {
135135
sudo_debug_printf(SUDO_DEBUG_INFO|SUDO_DEBUG_LINENO,
136136
"directory is writable by one of the user's groups");
137-
debug_return_int(true);
137+
debug_return_bool(true);
138138
}
139139
}
140140

141141
errno = EACCES;
142-
debug_return_int(false);
142+
debug_return_bool(false);
143143
}
144144

145145
#if defined(HAVE_FACCESSAT) && defined(AT_EACCESS)

0 commit comments

Comments
 (0)