getconf.diff

TGEN, 12/05/2006 10:28 PM

Download (476 Bytes)

View differences:

getconf.c 5 Dec 2006 22:21:43 -0000
141 141
	char *buf;
142 142
	size_t len;
143 143

  
144
	errno = 0;
144 145
	len = confstr(key, 0, 0);
145
	if (len == (size_t)-1)
146
	if (len == 0 && errno != 0)
146 147
		err(EX_OSERR, "confstr: %s", name);
147 148
	
148 149
	if (len == 0) {