mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
issue #4678
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
config.c
6
config.c
@@ -33,7 +33,7 @@
|
||||
#include <sys/stat.h>
|
||||
#define AST_INCLUDE_GLOB 1
|
||||
#ifdef AST_INCLUDE_GLOB
|
||||
#ifdef __Darwin__
|
||||
#if defined(__Darwin__) || defined(__CYGWIN__)
|
||||
#define GLOB_ABORTED GLOB_ABEND
|
||||
#endif
|
||||
# include <glob.h>
|
||||
@@ -693,7 +693,11 @@ int config_text_file_save(const char *configfile, const struct ast_config *cfg,
|
||||
}
|
||||
time(&t);
|
||||
ast_copy_string(date, ctime(&t), sizeof(date));
|
||||
#ifdef __CYGWIN__
|
||||
if ((f = fopen(fn, "w+"))) {
|
||||
#else
|
||||
if ((f = fopen(fn, "w"))) {
|
||||
#endif
|
||||
if ((option_verbose > 1) && !option_debug)
|
||||
ast_verbose( VERBOSE_PREFIX_2 "Saving '%s': ", fn);
|
||||
fprintf(f, ";!\n");
|
||||
|
Reference in New Issue
Block a user