Nico Golde:
authornion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 27 Jun 2005 17:21:11 +0000 (17:21 +0000)
committernion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 27 Jun 2005 17:21:11 +0000 (17:21 +0000)
- fixed random hex creation if mail will be written from command line
- corrected mistake in manual & update legal notes

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@320 e385b8ad-14ed-0310-8656-cc95a2468c6d

doc/dotlock.man
main.c

index 646eab6..9497dfe 100644 (file)
@@ -145,6 +145,6 @@ comments in dotlock.c.
 .PP
 .B muttng_dotlock
 is part of the Mutt-ng mail user agent package.  It has been
 .PP
 .B muttng_dotlock
 is part of the Mutt-ng mail user agent package.  It has been
-created to avoid running mutt with group mail privileges.
+created to avoid running Mutt-ng with group mail privileges.
 .SH AUTHOR
 .SH AUTHOR
-Thomas Roessler <roessler@guug.de>
+Thomas Roessler <roessler@guug.de>, Nico Golde <nion@muttng.or>>
diff --git a/main.c b/main.c
index 0487844..679a797 100644 (file)
--- a/main.c
+++ b/main.c
@@ -501,11 +501,16 @@ int main (int argc, char **argv)
   int version = 0;
   int i;
   int explicit_folder = 0;
   int version = 0;
   int i;
   int explicit_folder = 0;
+  long sek;
   extern char *optarg;
   extern int optind;
 
   extern char *optarg;
   extern int optind;
 
+  /* initialize random number for tmp file creation */ 
+  time (&sek);
+  srand (sek);
+  
   /* sanity check against stupid administrators */
   /* sanity check against stupid administrators */
-
+  
   if (getegid () != getgid ()) {
     fprintf (stderr, "%s: I don't want to run with privileges!\n", argv[0]);
     exit (1);
   if (getegid () != getgid ()) {
     fprintf (stderr, "%s: I don't want to run with privileges!\n", argv[0]);
     exit (1);