From: Todd C. Miller Date: Tue, 30 Jan 2018 18:12:38 +0000 (-0700) Subject: Remove extraneous break statement and fix some whitespace. X-Git-Tag: SUDO_1_8_23^2~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07d9cec271dda2d671412efa52f65a1a93114198;p=sudo Remove extraneous break statement and fix some whitespace. --- diff --git a/plugins/sudoers/timestamp.c b/plugins/sudoers/timestamp.c index 5136dcad0..076374e5c 100644 --- a/plugins/sudoers/timestamp.c +++ b/plugins/sudoers/timestamp.c @@ -90,7 +90,6 @@ ts_match_record(struct timestamp_entry *key, struct timestamp_entry *entry) debug_return_bool(false); if (sudo_timespeccmp(&entry->start_time, &key->start_time, !=)) debug_return_bool(false); - break; break; case TS_TTY: if (entry->u.ttydev != key->u.ttydev) @@ -164,7 +163,7 @@ ts_mkdirs(char *path, uid_t owner, gid_t group, mode_t mode, /* umask must not be more restrictive than the file modes. */ omask = umask(ACCESSPERMS & ~(mode|parent_mode)); - ret = sudo_mkdir_parents(path, owner, group, parent_mode, quiet); + ret = sudo_mkdir_parents(path, owner, group, parent_mode, quiet); if (ret) { /* Create final path component. */ sudo_debug_printf(SUDO_DEBUG_DEBUG|SUDO_DEBUG_LINENO, @@ -790,8 +789,8 @@ timestamp_status(void *vcookie, struct passwd *pw) /* Compare stored time stamp with current time. */ if (sudo_gettime_mono(&now) == -1) { - log_warning(0, N_("unable to read the clock")); - status = TS_ERROR; + log_warning(0, N_("unable to read the clock")); + status = TS_ERROR; goto done; } sudo_timespecsub(&now, &entry.ts, &diff); @@ -882,7 +881,7 @@ timestamp_update(void *vcookie, struct passwd *pw) /* Update timestamp in key and enable it. */ CLR(cookie->key.flags, TS_DISABLED); if (sudo_gettime_mono(&cookie->key.ts) == -1) { - log_warning(0, N_("unable to read the clock")); + log_warning(0, N_("unable to read the clock")); goto done; }