about summary refs log tree commit diff
path: root/shadow/putspent.c
diff options
context:
space:
mode:
Diffstat (limited to 'shadow/putspent.c')
-rw-r--r--shadow/putspent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shadow/putspent.c b/shadow/putspent.c
index 8c8bd2a9a9..dc1039477a 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)