i was wondering why `openssl des -e -out file` produces a zero sized file and exits with 0. so i straced it:
[...] write(3, "|[EMAIL PROTECTED],"..., 32768) = -1 ENOSPC (No space left on device) read(0, "0\234\224\7F8\201\250F\224(\324+\250~}\347\366\372r\343"..., 8192) = 2048 read(0, "", 4096) = 0 read(0, "", 8192) = 0 write(3, "\253g\207\346so\32}\376M\\\214R\221\r\324\241\270\304\227"..., 6152) = -1 ENOSPC (No space left on device) getpid() = 11997 getpid() = 11997 close(3) = 0 munmap(0x40018000, 32768) = 0 getpid() = 11997 getpid() = 11997 exit_group(0) = ? Process 11997 detached ENOSPC... a very simple reason. but why does openssl exit with 0, indicating success? please consider fixing this by exiting with non-zero (preferred) or at least documenting this "feature" of a fixed zero exit code in the man page. :r !openssl version -a OpenSSL 0.9.7c 30 Sep 2003 built on: Thu Oct 16 16:54:15 CEST 2003 platform: debian-i386-i686/cmov options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx) compiler: gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DL_ENDIAN -DTERMIO -O3 -march=i686 -mcpu=i686 -fomit-frame-pointer -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM OPENSSLDIR: "/usr/lib/ssl" thanks, rj ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
