Hello,

vchkpw gives  Segmentation fault when it is issued without argument.
# ./vchkpw
Segmentation fault: 11 (core dumped)

I know that vchkpw must be issued with an argument. But I think it is
good tho inform the user when he/she runs it without argument.
The following simple patch will make happy vhckpw.

Thanks.

# diff -ruN vchkpw.c.orig
--- vchkpw.c.orig       Fri Jan 11 19:42:36 2008
+++ vchkpw.c    Fri Jan 11 19:42:53 2008
@@ -160,6 +160,12 @@
        * Note that the popular Courier-IMAP does not use vchkpw, it
        * links libvpopmail directly into its server.
        */
+        if (argc == 1) {
+               fprintf(stderr, "%s: vchkpw is only for talking with 
qmail-popup and qmail-pop3d. \
+ It is not for runnning on the command line.\n", VchkpwLogName);
+               vchkpw_exit(11);
+       }
+
       if (strstr (argv[1], "true") != NULL)  /* used as STMP AUTH */
         ConnType = SMTP_CONN;
       else if (strstr (argv[1], "imap") != NULL)  /* used with IMAP */

-- 
Ismail YENIGUL
Yönetici/Manager
Servis ve Destek Bölümü/System Services and Support Division
Tel: +90 216 344 07 15
Fax: +90 216 344 07 16
http://www.endersys.com.tr


!DSPAM:4787b001310542095521980!

Reply via email to