[zaptel-commits] tzafrir: branch 1.2 r2914 - /branches/1.2/fxotune.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Aug 21 03:00:26 CDT 2007


Author: tzafrir
Date: Tue Aug 21 03:00:25 2007
New Revision: 2914

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2914
Log:
* Add an explicit mode to the callto open (the default one that is used
  anyway).
* Clarify error message.

Closes #10505 on Zaptel 1.2.

Modified:
    branches/1.2/fxotune.c

Modified: branches/1.2/fxotune.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/fxotune.c?view=diff&rev=2914&r1=2913&r2=2914
==============================================================================
--- branches/1.2/fxotune.c (original)
+++ branches/1.2/fxotune.c Tue Aug 21 03:00:25 2007
@@ -353,10 +353,10 @@
 			fputs(usage, stdout);
 			return -1;
 		}
-		configfd = open(configfile, O_CREAT|O_TRUNC|O_WRONLY);
+		configfd = open(configfile, O_CREAT|O_TRUNC|O_WRONLY, 0666);
 
 		if (configfd < 0) {
-			fprintf(stderr, "open: %s\n", strerror(errno));
+			fprintf(stderr, "Cannot generate config file %s: open: %s\n", configfile, strerror(errno));
 			return -1;
 		}
 




More information about the zaptel-commits mailing list