]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
treewide: remove trailing whitespaces 412/head
authorLuís Ferreira <contact@lsferreira.net>
Mon, 13 Sep 2021 16:23:17 +0000 (17:23 +0100)
committerLuís Ferreira <contact@lsferreira.net>
Mon, 13 Sep 2021 16:23:17 +0000 (17:23 +0100)
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
14 files changed:
src/chfn.c
src/chgpasswd.c
src/expiry.c
src/groupdel.c
src/groupmems.c
src/grpck.c
src/login_nopam.c
src/logoutd.c
src/newgrp.c
src/newuidmap.c
src/newusers.c
src/passwd.c
src/suauth.c
src/sulogin.c

index fc529c0bb85c7fdf4708ae61a0de5ef7eb800cb4..323fd43f52f140b5d45e979b8444150c7ae65c1c 100644 (file)
@@ -277,7 +277,7 @@ static void process_flags (int argc, char **argv)
                {NULL, 0, NULL, '\0'}
        };
 
-       /* 
+       /*
         * The remaining arguments will be processed one by one and executed
         * by this command. The name is the last argument if it does not
         * begin with a "-", otherwise the name is determined from the
@@ -392,7 +392,7 @@ static void check_perms (const struct passwd *pw)
        /*
         * Non-privileged users are optionally authenticated (must enter the
         * password of the user whose information is being changed) before
-        * any changes can be made. Idea from util-linux chfn/chsh. 
+        * any changes can be made. Idea from util-linux chfn/chsh.
         * --marekm
         */
        if (!amroot && getdef_bool ("CHFN_AUTH")) {
index 56f3e882da60df25755755c021e55ace2f0749a0..25dfc2461d2dc5f29367de4599fc5f28549cae65 100644 (file)
@@ -593,7 +593,7 @@ int main (int argc, char **argv)
                        newgr.gr_passwd = cp;
                }
 
-               /* 
+               /*
                 * The updated group file entry is then put back and will
                 * be written to the group file later, after all the
                 * other entries have been updated as well.
index 1d200716fb49fcf32372c9e21f9cd384cdcba25c..79db32ff4f15fab20b30819e3525268c103ff9dc 100644 (file)
@@ -133,7 +133,7 @@ static void process_flags (int argc, char **argv)
        }
 }
 
-/* 
+/*
  * expiry - check and enforce password expiration policy
  *
  *     expiry checks (-c) the current password expiration and forces (-f)
@@ -149,7 +149,7 @@ int main (int argc, char **argv)
 
        sanitize_env ();
 
-       /* 
+       /*
         * Start by disabling all of the keyboard signals.
         */
        (void) signal (SIGHUP, catch_signals);
index 5c893128ba34d97882b37f9042320aa1c0adcca6..364cac8de42a4088d45a73f8621b5a581cdf8a6e 100644 (file)
@@ -358,7 +358,7 @@ static void process_flags (int argc, char **argv)
  * main - groupdel command
  *
  *     The syntax of the groupdel command is
- *     
+ *
  *     groupdel group
  *
  *     The named group will be deleted.
index 654a8f3a945b228fbdb814e30af69837b49977dd..c2b25583675b5f26bd8787b1d531edd5faab2a7f 100644 (file)
@@ -85,7 +85,7 @@ static bool sgr_locked = false;
 static char *whoami (void);
 static void add_user (const char *user,
                       const struct group *grp);
-static void remove_user (const char *user, 
+static void remove_user (const char *user,
                          const struct group *grp);
 static void purge_members (const struct group *grp);
 static void display_members (const char *const *members);
@@ -197,7 +197,7 @@ static void add_user (const char *user,
 /*
  * remove_user - Remove an user from a given group
  */
-static void remove_user (const char *user, 
+static void remove_user (const char *user,
                          const struct group *grp)
 {
        struct group *newgrp;
@@ -587,7 +587,7 @@ static void close_files (void)
 #endif
 }
 
-int main (int argc, char **argv) 
+int main (int argc, char **argv)
 {
        char *name;
        const struct group *grp;
index b594851bfd8eac87afa3ebde15ba4c06de44001d..69bef036838c5618f3473f61815a0551e73754f1 100644 (file)
@@ -718,7 +718,7 @@ static void check_sgr_file (int *errors, bool *changed)
                        }
 
                        /*
-                        * All shadow group file deletions wind up here. 
+                        * All shadow group file deletions wind up here.
                         * This code removes the current entry from the
                         * linked list. When done, it skips back to the top
                         * of the loop to try out the next list element.
index 68a37755eacab43e81ad0ed3bb5c14a24aeddce9..241b77a587199be364fd221d38e90065d88eee92 100644 (file)
@@ -10,7 +10,7 @@
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that this entire copyright notice is duplicated in all such
-* copies.  
+* copies.
 *
 * This software is provided "as is" and without any expressed or implied
 * warranties, including, without limitation, the implied warranties of
@@ -30,7 +30,7 @@
      * control based on login names and on host (or domain) names, internet
      * addresses (or network numbers), or on terminal line names in case of
      * non-networked logins. Diagnostics are reported through syslog(3).
-     * 
+     *
      * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
      */
 #include <sys/types.h>
index 780c29f863136a88211aa6939ecd2dfb63a5ae55..02935a9137f8f88e013c8fe7f23260e082f35433 100644 (file)
@@ -198,7 +198,7 @@ int main (int argc, char **argv)
         */
        while (true) {
 
-               /* 
+               /*
                 * Attempt to re-open the utmpx/utmp file. The file is only
                 * open while it is being used.
                 */
index 2b9293b47ab1e27e3c694d263944f2ff1e328f73..730f47e8a1f2c3c56ad76a9d5bfc82ba5c911e1f 100644 (file)
@@ -494,7 +494,7 @@ int main (int argc, char **argv)
                initflag = true;
        }
        if (!is_newgrp) {
-               /* 
+               /*
                 * Do the command line for everything that is
                 * not "newgrp".
                 */
@@ -533,7 +533,7 @@ int main (int argc, char **argv)
                        group = argv[0];
                } else {
                        /*
-                        * get the group file entry for her login group id. 
+                        * get the group file entry for her login group id.
                         * the entry must exist, simply to be annoying.
                         *
                         * Perhaps in the past, but the default behavior now depends on the
@@ -595,17 +595,17 @@ int main (int argc, char **argv)
         * now we put her in the new group. The password file entry for her
         * current user id has been gotten. If there was no optional group
         * argument she will have her real and effective group id set to the
-        * set to the value from her password file entry.  
+        * set to the value from her password file entry.
         *
         * If run as newgrp, or as sg with no command, this process exec's
-        * an interactive subshell with the effective GID of the new group. 
+        * an interactive subshell with the effective GID of the new group.
         * If run as sg with a command, that command is exec'ed in this
         * subshell. When this process terminates, either because the user
         * exits, or the command completes, the parent of this process
         * resumes with the current GID.
         *
         * If a group is explicitly specified on the command line, the
-        * interactive shell or command is run with that effective GID. 
+        * interactive shell or command is run with that effective GID.
         * Access will be denied if no entry for that group can be found in
         * /etc/group. If the current user name appears in the members list
         * for that group, access will be granted immediately; if not, the
@@ -650,7 +650,7 @@ int main (int argc, char **argv)
        }
 #endif                          /* HAVE_SETGROUPS */
        /*
-        * For splitted groups (due to limitations of NIS), check all 
+        * For splitted groups (due to limitations of NIS), check all
         * groups of the same GID like the requested group for
         * membership of the current user.
         */
@@ -698,7 +698,7 @@ int main (int argc, char **argv)
 #ifdef HAVE_SETGROUPS
        /*
         * I am going to try to add her new group id to her concurrent group
-        * set. If the group id is already present i'll just skip this part. 
+        * set. If the group id is already present i'll just skip this part.
         * If the group doesn't fit, i'll complain loudly and skip this
         * part.
         */
@@ -854,7 +854,7 @@ int main (int argc, char **argv)
 
        /*
         * The previous code, when run as newgrp, re-exec'ed the shell in
-        * the current process with the original gid on error conditions. 
+        * the current process with the original gid on error conditions.
         * See the comment above. This historical behavior now has the
         * effect of creating unlogged extraneous shell layers when the
         * command line has an error or there is an authentication failure.
@@ -867,7 +867,7 @@ int main (int argc, char **argv)
        if (NULL != group) {
                snprintf (audit_buf, sizeof(audit_buf),
                          "changing new-group=%s", group);
-               audit_logger (AUDIT_CHGRP_ID, Prog, 
+               audit_logger (AUDIT_CHGRP_ID, Prog,
                              audit_buf, NULL,
                              (unsigned int) getuid (), 0);
        } else {
index bdd9cadfc4c43e8d1c134835f5938513444a1bd8..c9a92155c6e4e91e88d08dacc9a75b7879cb3d1e 100644 (file)
@@ -148,7 +148,7 @@ int main(int argc, char **argv)
                                (unsigned long) getuid ()));
                return EXIT_FAILURE;
        }
-       
+
        /* Get the effective uid and effective gid of the target process */
        if (fstat(proc_dir_fd, &st) < 0) {
                fprintf(stderr, _("%s: Could not stat directory for target %u\n"),
index 16bf7229cf7c59ce899e1753eada3f4a8f981b16..edbb401089beec7782f7b5859793e6195183d47e 100644 (file)
@@ -428,7 +428,7 @@ static int add_user (const char *name, uid_t uid, gid_t gid)
 }
 
 #ifndef USE_PAM
-/* 
+/*
  * update_passwd - update the password in the passwd entry
  *
  * Return 0 if successful.
index 9d33d25e5b44be06290ce3591bf0efca0613eaa9..044bb51a4be2be7239b5a3cb1772fcc0215f189a 100644 (file)
@@ -328,7 +328,7 @@ static int new_password (const struct passwd *pw)
 
                /*
                 * If enabled, warn about weak passwords even if you are
-                * root (enter this password again to use it anyway). 
+                * root (enter this password again to use it anyway).
                 * --marekm
                 */
                if (amroot && !warned && getdef_bool ("PASS_ALWAYS_WARN")
@@ -1045,7 +1045,7 @@ int main (int argc, char **argv)
                STRFCPY (crypt_passwd, cp);
 
                /*
-                * See if the user is permitted to change the password. 
+                * See if the user is permitted to change the password.
                 * Otherwise, go ahead and set a new password.
                 */
                check_password (pw, sp);
index 619a593b97662275eac8dc52b1cfc7839365ffa2..90e1807e423eb6f99621b64bb9471ea2cd032371 100644 (file)
@@ -50,7 +50,7 @@
 
 #ifdef SU_ACCESS
 
-/* Really, I could do with a few const char's here defining all the 
+/* Really, I could do with a few const char's here defining all the
  * strings output to the user or the syslog. -- chris
  */
 static int applies (const char *, char *);
index 8f18150506f26289ee6cc81c89eea1ef0ab7e9ca..a5a150c1aab7494982d9d1c4c858d4e90223fa8e 100644 (file)
@@ -211,7 +211,7 @@ static RETSIGTYPE catch_signals (unused int sig)
                /*
                 * XXX - can't enter single user mode if root password is
                 * empty.  I think this doesn't happen very often :-). But
-                * it will work with standard getpass() (no NULL on EOF). 
+                * it will work with standard getpass() (no NULL on EOF).
                 * --marekm
                 */
                if ((NULL == cp) || ('\0' == *cp)) {