[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] proftpd/src mkhome.c,1.20,1.21
From:       TJ Saunders <castaglia () users ! sourceforge ! net>
Date:       2013-02-27 22:22:02
Message-ID: E1UApO0-00085c-KK () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/proftp/proftpd/src
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14100/src

Modified Files:
	mkhome.c 
Log Message:

Only fire the 'core.created-home' event IFF the home directory was actually
created (versus already existing).


Index: mkhome.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/src/mkhome.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- mkhome.c	27 Feb 2013 00:50:11 -0000	1.20
+++ mkhome.c	27 Feb 2013 22:22:00 -0000	1.21
@@ -321,7 +321,9 @@
     }
   }
 
-  pr_event_generate("core.created-home", user);
+  if (res == 0) {
+    pr_event_generate("core.created-home", user);
+  }
 
   PRIVS_RELINQUISH
   return 0;


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic