aboutsummaryrefslogtreecommitdiff
path: root/shadow
diff options
context:
space:
mode:
Diffstat (limited to 'shadow')
-rw-r--r--shadow/putspent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shadow/putspent.c b/shadow/putspent.c
index 8c8bd2a..dc10394 100644
--- a/shadow/putspent.c
+++ b/shadow/putspent.c
@@ -66,10 +66,8 @@ putspent (const struct spwd *p, FILE *stream)
&& putc (':', stream) == EOF))
++errors;
- if ((p->sp_flag != ~0ul
- && fprintf (stream, "%ld:", p->sp_flag) < 0)
- || (p->sp_flag == ~0ul
- && putc (':', stream) == EOF))
+ if (p->sp_flag != ~0ul
+ && fprintf (stream, "%ld", p->sp_flag) < 0)
++errors;
if (putc ('\n', stream) == EOF)