[svn-commits] tzafrir: branch 1.4 r2915 - in /branches/1.4: ./ fxotune.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 21 03:21:44 CDT 2007


Author: tzafrir
Date: Tue Aug 21 03:21:44 2007
New Revision: 2915

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

closes #10505 on Zaptel 1.4.

Merged revisions 2914 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2

Modified:
    branches/1.4/   (props changed)
    branches/1.4/fxotune.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/fxotune.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/fxotune.c?view=diff&rev=2915&r1=2914&r2=2915
==============================================================================
--- branches/1.4/fxotune.c (original)
+++ branches/1.4/fxotune.c Tue Aug 21 03:21:44 2007
@@ -824,10 +824,10 @@
 	char zapdev[80] = "";
 	struct wctdm_echo_coefs coefs;
 	
-	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 svn-commits mailing list