summary refs log tree commit diff
path: root/nis/nis_print.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-26 15:27:52 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-26 15:27:52 +0000
commit80fbf0d16752db056ed256118d1d3a33265e6cd1 (patch)
tree59e458554af8d432bf782a11b9318daa2176370d /nis/nis_print.c
parentcb0509a8d5a3569117babe0a24dc4946cf6c06c1 (diff)
downloadglibc-80fbf0d16752db056ed256118d1d3a33265e6cd1.tar.gz
glibc-80fbf0d16752db056ed256118d1d3a33265e6cd1.tar.xz
glibc-80fbf0d16752db056ed256118d1d3a33265e6cd1.zip
Update.
1998-11-26  Philip Blundell  <philb@gnu.org> 
 
	Undo change of 1998-11-12: 
	* sysdeps/unix/sysv/linux/netlink/netlink.h: Deleted. 
	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove 
	netlink/netlink.h. 
	* sysdeps/unix/sysv/linux/Dist: Likewise. 
 
1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de> 
 
	* nis/nis_print.c (nis_print_entry): Changes to match Solaris output. 
 
Diffstat (limited to 'nis/nis_print.c')
-rw-r--r--nis/nis_print.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nis/nis_print.c b/nis/nis_print.c
index 2433d4fd88..197d773ce1 100644
--- a/nis/nis_print.c
+++ b/nis/nis_print.c
@@ -299,8 +299,11 @@ nis_print_entry (const entry_obj *obj)
 	fputs (_("Encrypted data\n"), stdout);
       else if ((obj->en_cols.en_cols_val[i].ec_flags & EN_BINARY) == EN_BINARY)
 	fputs (_("Binary data\n"), stdout);
+      else if (obj->en_cols.en_cols_val[i].ec_value.ec_value_len == 0)
+	fputs ("'(nil)'\n", stdout);
       else
-	printf ("%.*s\n", (int)obj->en_cols.en_cols_val[i].ec_value.ec_value_len,
+	printf ("'%.*s'\n",
+		(int)obj->en_cols.en_cols_val[i].ec_value.ec_value_len,
 		obj->en_cols.en_cols_val[i].ec_value.ec_value_val);
     }
 }