smbclient: Remove one level of indentation for the utimes command
authorChristof Schmitt <cs@samba.org>
Tue, 14 Apr 2020 23:38:03 +0000 (16:38 -0700)
committerChristof Schmitt <cs@samba.org>
Thu, 16 Apr 2020 17:27:40 +0000 (17:27 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/client/client.c

index f2cb3c8a3374679ce2d424ec520f1c1e37ac44e5..b19d47526919b2414c6bf984684aedbe237cc636 100644 (file)
@@ -5233,10 +5233,10 @@ static int cmd_utimes(void)
                        times[time_count] = make_omit_timespec();
                        time_count++;
                        continue;
-               } else {
-                       ret = strptime(s, "%y:%m:%d-%H:%M:%S", &tm);
                }
 
+               ret = strptime(s, "%y:%m:%d-%H:%M:%S", &tm);
+
                /* We could not match all the chars, so print error */
                if (ret == NULL || *ret != 0) {
                        d_printf("Invalid date format: %s\n", s);