[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: The open() system call in f8 really broken...



On Thu, Aug 16, 2007 at 04:36:37PM -0400, Dave Jones wrote:
 > On Thu, Aug 16, 2007 at 04:21:38PM -0400, Dave Jones wrote:
 >  > On Thu, Aug 16, 2007 at 05:08:15PM +0200, Oliver Falk wrote:
 >  > 
 >  >  > If you compile the whole Fedora tree, how many warnings will you see?
 >  >  
 >  > So I grepped across a make prep'd tree of devel (all 63 gig of it).
 >  > Here's the fallout..
 >  > 
 >  > openmpi/openmpi-1.2.3/orte/runtime/orte_abort.c         fd = open(abort_file, O_CREAT);
 >  > jython/jython-svn-Release_2_2beta1/CPythonLib/test/test_unicode_file.py:f = os.open(TESTFN_ENCODED, os.O_CREAT)
 >  > perl/perl-5.8.8/t/op/taint.t:   eval { sysopen(my $cr, $evil, &O_CREAT) };
 >  > proftpd/proftpd-1.3.0a/contrib/mod_rewrite.c:    if ((fifo_lockfd = open(fifo_lockname, O_CREAT)) < 0)
 >  > pwlib/pwlib-1.10.7/configure:sem_t *s = sem_open("test", O_CREAT)
 >  > pwlib/pwlib-1.10.7/configure.ac:                 [sem_t *s = sem_open("test", O_CREAT)],
 >  > python/Python-2.5.1/Lib/test/test_unicode_file.py:        f = os.open(filename, os.O_CREAT)
 >  > python-docs/Python-2.5.1/Lib/test/test_unicode_file.py:        f = os.open(filename, os.O_CREAT)
 >  > xca/xca-0.6.3/_tmp_root/usr/lib/python2.5/test/test_unicode_file.py:        f = os.open(filename, os.O_CREAT)
 >  > 
 >  > Not too bad considering.
 > 
 > Bah, my regexp was imperfect.  I'll fix up and rerun.

More like it. 267 hits.

	Dave

Checking ./aqbanking/aqbanking-2.3.2/src/libs/aqbanking/httpsession.c
Found open with O_CREAT and no mode.
	fdWrite = open(DIALOG_LOGFILE_BASE ".out", O_WRONLY | O_CREAT);

Checking ./aqbanking/aqbanking-2.3.2/src/plugins/backends/aqhbci/plugin/msglayer/message.c
Found open with O_CREAT and no mode.
    fd = open(logFile, O_RDWR | O_CREAT | O_APPEND);

Checking ./grass/grass-6.2.2-fedora/raster/r.drain/main.c
Found open with O_CREAT and no mode.
    fe = open(tempfile1, O_RDWR | O_CREAT);
    fd = open(tempfile2, O_RDWR | O_CREAT);

Checking ./grass/grass-6.2.2-fedora/raster/r.fill.dir/main.c
Found open with O_CREAT and no mode.
    fe = open(tempfile1, O_RDWR | O_CREAT);	/* elev */
    fd = open(tempfile2, O_RDWR | O_CREAT);	/* dirn */
    fm = open(tempfile3, O_RDWR | O_CREAT);	/* problems */

Checking ./openmpi/openmpi-1.2.3/orte/runtime/orte_abort.c
Found open with O_CREAT and no mode.
	fd = open(abort_file, O_CREAT);

Checking ./compat-gcc-32/gcc-3.2.3-20040701/gcc/collect2.c
Found open with O_CREAT and no mode.
	redir_handle = open(redir, O_WRONLY | O_TRUNC | O_CREAT);

Checking ./nessus-core/nessus-core/nessusd/detached.c
Found open with O_CREAT and no mode.
    int f = open(fname, O_CREAT | O_WRONLY | O_TRUNC);

Checking ./libxml2/libxml2-2.6.29/nanohttp.c
Found open with O_CREAT and no mode.
	fd = open(filename, O_CREAT | O_WRONLY);

Checking ./hdf5/hdf5-1.6.5/perform/pio_engine.c
Found open with O_CREAT and no mode.
	hrc = do_fopen(&param, fname, &fd, PIO_CREATE | PIO_WRITE);

Checking ./hdf5/hdf5-1.6.5/perform/zip_perf.c
Found open with O_CREAT and no mode.
	output = open(filename, O_RDWR | O_CREAT);

Checking ./dd_rescue/dd_rescue/dd_rescue.c
Found open with O_CREAT and no mode.
	c = openfile(lname, O_WRONLY | O_CREAT /*| O_EXCL */ );

Checking ./hal/hal-0.5.10/tools/hal-acl-tool.c
Found open with O_CREAT and no mode.
	open(PACKAGE_LOCALSTATEDIR "/lib/hal/acl-list", O_CREAT | O_RDWR);

Checking ./ettercap/ettercap-NG-0.7.3/src/ec_log.c
Found open with O_CREAT and no mode.
	fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);

Checking ./openhpi/openhpi-2.8.1/utils/uid_utils.c
Found open with O_CREAT and no mode.
    file = open(uid_map_file, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./openhpi/openhpi-2.8.1/utils/t/epath/uid_utils.c
Found open with O_CREAT and no mode.
    file = open(uid_map_file, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./openhpi/openhpi-2.8.1/utils/t/uid/uid_utils.c
Found open with O_CREAT and no mode.
    file = open(uid_map_file, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./openhpi/openhpi-2.8.1/utils/t/rpt/uid_utils.c
Found open with O_CREAT and no mode.
    file = open(uid_map_file, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./openhpi/openhpi-2.8.1/utils/t/sahpi/uid_utils.c
Found open with O_CREAT and no mode.
    file = open(uid_map_file, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./libburn/libburn-0.2.6.3/cdrskin/cdrfifo.c
Found open with O_CREAT and no mode.
	    fd = open(argv[i] + 3, O_WRONLY | O_CREAT);

Checking ./snort/snort-2.6.1.4/src/util.c
Found open with O_CREAT and no mode.
    open("/tmp/snort.debug", O_CREAT | O_RDWR);

Checking ./snort/snort-2.6.1.4/src/preprocessors/flow/portscan/server_stats.c
Found open with O_CREAT and no mode.
    fd = open(filename, O_CREAT | O_TRUNC | O_SYNC | O_WRONLY);

Checking ./tgif/tgif-QPL-4.1.45/util.c
Found open with O_CREAT and no mode.
    fd = open(buf, O_CREAT | O_EXCL | O_WRONLY);

Checking ./tgif/tgif-QPL-4.1.45/file.c
Found open with O_CREAT and no mode.
	int fd = open(buf, O_CREAT | O_EXCL | O_WRONLY);

Checking ./neon/neon-0.25.5/test/request.c
Found open with O_CREAT and no mode.
    fd = open(fn, O_RDWR | O_CREAT);

Checking ./yap/Yap-5.1.1/C/alloc.c
Found open with O_CREAT and no mode.
	fd = open(file, O_CREAT | O_RDWR);
	fd = open(file, O_CREAT | O_RDWR);

Checking ./allegro/allegro-4.2.2/src/file.c
Found open with O_CREAT and no mode.
		_al_open(tmp_name, O_RDWR | O_BINARY | O_CREAT | O_EXCL);

Checking ./dx/dx-4.4.4/src/exec/libdx/fileio.c
Found open with O_CREAT and no mode.
	    fd = open(name, O_WRONLY | O_CREAT);

Checking ./acpid/acpid-1.0.4/acpid.c
Found open with O_CREAT and no mode.
    logfd = open(logfile, O_WRONLY | O_CREAT | O_APPEND);

Checking ./aircrack-ng/aircrack-ng-0.9.1/src/aireplay-ng.c
Found open with O_CREAT and no mode.
	dev.nofcs = open(location, O_WRONLY | O_CREAT);

Checking ./mbuffer/mbuffer-20070502/mbuffer.c
Found open with O_CREAT and no mode.
	    Tmp = open(Tmpfile, O_RDWR | O_CREAT | O_EXCL);

Checking ./initscripts/initscripts-8.55/src/rename_device.c
Found open with O_CREAT and no mode.
	lockfd = open(LOCKFILE, O_RDWR | O_CREAT | O_EXCL);

Checking ./elinks/elinks-0.11.3/src/osdep/win32/win32.c
Found open with O_CREAT and no mode.
    return open(tempname, O_CREAT | O_WRONLY | O_EXCL | O_BINARY);

Checking ./mysql/mysql-5.0.45/netware/my_manage.c
Found open with O_CREAT and no mode.
	wiring.outfd = open(output, O_WRONLY | O_CREAT | O_TRUNC);
	wiring.errfd = open(error, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./nessus-libraries/nessus-libraries/libnessus/network.c
Found open with O_CREAT and no mode.
	lock_fd = open(NESSUS_CNX_LOCK, O_RDWR | O_CREAT);

Checking ./compat-erlang/otp_src_R10B-10/erts/etc/unix/run_erl.c
Found open with O_CREAT and no mode.
    lfd = open_log(lognum, O_RDWR | O_APPEND | O_CREAT | O_SYNC);
	*lfd = open_log(*log_num, O_RDWR | O_CREAT | O_TRUNC | O_SYNC);

Checking ./doodle/doodle-0.6.6/src/doodle/doodled.c
Found open with O_CREAT and no mode.
    nullfd = open("/dev/null", O_CREAT | O_RDWR | O_APPEND);

Checking ./xorg-x11-drv-i810/xf86-video-intel-2.1.0/src/bios_reader/bios_dumper.c
Found open with O_CREAT and no mode.
    fd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC);

Checking ./openais/openais-0.80.1/exec/keygen.c
Found open with O_CREAT and no mode.
    authkey_fd = open("/etc/ais/authkey", O_CREAT | O_WRONLY);

Checking ./elektra/elektra-0.6.10/src/backends/ini/helpers.c
Found open with O_CREAT and no mode.
	fd = open(filename, posix_mode | O_CREAT);

Checking ./libdsk/libdsk-1.1.12/tools/serslave.c
Found open with O_CREAT and no mode.
    outfd = open(filename, O_CREAT | O_WRONLY | O_APPEND | O_NONBLOCK);

Checking ./ImageMagick/ImageMagick-6.3.2/magick/delegate.c
Found open with O_CREAT and no mode.
    destination_file = open(destination, O_WRONLY | O_BINARY | O_CREAT);

Checking ./Coin2/Coin-2.4.6/src/tidbits.c
Found open with O_CREAT and no mode.
		    nullfd = open(tmpname, O_CREAT | O_WRONLY);

Checking ./cdogs-sdl/cdogs-sdl-0.4/src/files.c
Found open with O_CREAT and no mode.
    f = open(filename, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./dietlibc/dietlibc-0.30/test/mmap_test.c
Found open with O_CREAT and no mode.
    fd = open(FILENAME, O_RDWR | O_CREAT);

Checking ./rhythmbox/rhythmbox-0.11.1/plugins/daap/rb-daap-structure.c
Found open with O_CREAT and no mode.
	fd = open(PARSE_DEBUG_FILE, O_WRONLY | O_CREAT);

Checking ./gwenhywfar/gwenhywfar-2.6.1/test/gwentest.c
Found open with O_CREAT and no mode.
    fd = open(outFile, O_CREAT | O_WRONLY);
    fd = open(outFile, O_CREAT | O_WRONLY);
    fd = open(outFile, O_CREAT | O_WRONLY);

Checking ./libchewing/libchewing-0.3.0/src/porting_layer/src/plat_mmap_posix.c
Found open with O_CREAT and no mode.
	handle->fd = open(file, O_RDWR | O_CREAT);

Checking ./kst/kst-1.4.0/kst/src/datasources/dirfile/getdata.c
Found open with O_CREAT and no mode.
	    R->fp = open(datafilename, O_RDWR | O_CREAT);

Checking ./jfsutils/jfsutils-1.1.11/libfs/fssubs.c
Found open with O_CREAT and no mode.
    fd = open(TEST_FILE, O_RDWR | O_CREAT);

Checking ./arm-gp2x-linux-glibc/arm-gp2x-linux-glibc-2.3.6/glibc-2.3.6/login/tst-grantpt.c
Found open with O_CREAT and no mode.
    fd = open(file, O_RDWR | O_CREAT);

Checking ./heartbeat/heartbeat-2.0.8/lib/clplumbing/cl_msg.c
Found open with O_CREAT and no mode.
    return open(filename, O_WRONLY | O_CREAT | O_APPEND);

Checking ./brltty/brltty-3.7.2/Programs/config.c
Found open with O_CREAT and no mode.
    int fd = open(preferencesFile, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./brltty/brltty-3.7.2/BrailleDrivers/EcoBraille/braille.c
Found open with O_CREAT and no mode.
    brl_log = open("/tmp/brllog", O_CREAT | O_WRONLY);

Checking ./t1lib/t1lib-5.1.1/lib/t1lib/t1outline.c
if with ; at EOL!
	if (ipath->type == TEXTTYPE);

Checking ./bombardier/bombardier-0.8.2/hof.c
Found open with O_CREAT and no mode.
	fd = open("/var/games/bombardier/bdscore", O_RDWR | O_CREAT);

Checking ./squid/squid-2.6.STABLE14/src/fs/diskd/store_dir_diskd.c
Found open with O_CREAT and no mode.
    fd = file_open(path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(swaplog_path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(new_path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);
	file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);

Checking ./squid/squid-2.6.STABLE14/src/fs/aufs/store_dir_aufs.c
Found open with O_CREAT and no mode.
    fd = file_open(path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(swaplog_path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(new_path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);
	file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);

Checking ./squid/squid-2.6.STABLE14/src/fs/aufs/store_io_aufs.c
Found open with O_CREAT and no mode.
    fd = file_open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);

Checking ./squid/squid-2.6.STABLE14/src/fs/coss/store_dir_coss.c
Found open with O_CREAT and no mode.
    fd = file_open(path, O_WRONLY | O_CREAT | O_BINARY);
    cs->fd = file_open(stripePath(sd), O_RDWR | O_CREAT | O_BINARY);
    fd = file_open(swaplog_path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(new_path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);
	file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);

Checking ./squid/squid-2.6.STABLE14/src/fs/ufs/store_dir_ufs.c
Found open with O_CREAT and no mode.
    fd = file_open(path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(swaplog_path, O_WRONLY | O_CREAT | O_BINARY);
    fd = file_open(new_path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);
	file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);

Checking ./squid/squid-2.6.STABLE14/src/tools.c
Found open with O_CREAT and no mode.
    fd = file_open(f, O_WRONLY | O_CREAT | O_TRUNC | O_TEXT);

Checking ./squid/squid-2.6.STABLE14/src/logfile.c
Found open with O_CREAT and no mode.
	int fd = file_open(path, O_WRONLY | O_CREAT | O_TEXT);
    lf->fd = file_open(lf->path, O_WRONLY | O_CREAT | O_TEXT);

Checking ./postgresql/postgresql-8.2.4/src/backend/storage/smgr/md.c
Found open with O_CREAT and no mode.
	    v->mdfd_chain = _mdfd_openseg(reln, segno, O_CREAT);

Checking ./nethack-vultures/vultures-2.1.0/slashem/win/gem/bitmfile.c
Found open with O_CREAT and no mode.
    file = open(filename, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./nethack-vultures/vultures-2.1.0/slashem/util/recover.c
Found open with O_CREAT and no mode.
	out = open(iconfile, O_WRONLY | O_TRUNC | O_CREAT);

Checking ./nethack-vultures/vultures-2.1.0/nethack/win/gem/bitmfile.c
Found open with O_CREAT and no mode.
    file = open(filename, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./nethack-vultures/vultures-2.1.0/nethack/util/recover.c
Found open with O_CREAT and no mode.
	out = open(iconfile, O_WRONLY | O_TRUNC | O_CREAT);

Checking ./nethack-vultures/vultures-2.1.0/nethack/util/lev_main.c
Found open with O_CREAT and no mode.
    fout = open(lbuf, O_WRONLY | O_CREAT | O_BINARY);

Checking ./nethack/nethack-3.4.3/win/gem/bitmfile.c
Found open with O_CREAT and no mode.
    file = open(filename, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./nethack/nethack-3.4.3/util/recover.c
Found open with O_CREAT and no mode.
	out = open(iconfile, O_WRONLY | O_TRUNC | O_CREAT);

Checking ./nethack/nethack-3.4.3/util/lev_main.c
Found open with O_CREAT and no mode.
    fout = open(lbuf, O_WRONLY | O_CREAT | O_BINARY);

Checking ./callweaver/callweaver-r2861/apps/app_voicemail.c
Found open with O_CREAT and no mode.
	fd = open(full_fn, O_RDWR | O_CREAT | O_TRUNC);

Checking ./callweaver/callweaver-r2861/channels/chan_zap.c
Found open with O_CREAT and no mode.
	myfd = open(argv[4], O_CREAT | O_WRONLY);

Checking ./callweaver/callweaver-r2861/codecs/codec_speex.c
Found open with O_CREAT and no mode.
	    fd = open("speex.raw", O_WRONLY | O_TRUNC | O_CREAT);

Checking ./e2fsprogs/e2fsprogs-1.40.2/lib/ext2fs/ismounted.c
Found open with O_CREAT and no mode.
	fd = open(TEST_FILE, O_RDWR | O_CREAT);

Checking ./initng/initng-0.6.10.1/plugins/logfile/initng_logfile.c
Found open with O_CREAT and no mode.
    fd = open(filename, O_WRONLY | O_CREAT | O_APPEND);

Checking ./mysqlclient14/mysql-4.1.14/netware/my_manage.c
Found open with O_CREAT and no mode.
	wiring.outfd = open(output, O_WRONLY | O_CREAT | O_TRUNC);
	wiring.errfd = open(error, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./mysqlclient14/mysql-4.1.14/mysql-test/my_manage.c
Found open with O_CREAT and no mode.
	wiring.outfd = open(output, O_WRONLY | O_CREAT | O_TRUNC);
	wiring.errfd = open(error, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./compat-gcc-34/gcc-3.4.6-20060404/gcc/collect2.c
Found open with O_CREAT and no mode.
	redir_handle = open(redir, O_WRONLY | O_TRUNC | O_CREAT);

Checking ./TeXmacs/TeXmacs-1.0.6.10-src/plugins/r/src/tm_r.c
Found open with O_CREAT and no mode.
	LOG = open("/tmp/log", O_CREAT | O_WRONLY);

Checking ./lirc/lirc-0.8.2/daemons/slinke.c
Found open with O_CREAT and no mode.
    fd = open(remote->name, O_CREAT | O_EXCL | O_RDWR);

Checking ./ortp/ortp-0.13.1/src/tests/mrtprecv.c
Found open with O_CREAT and no mode.
	    open(filename, _O_BINARY | O_WRONLY | O_CREAT | O_TRUNC);

Checking ./ortp/ortp-0.13.1/src/tests/tevmrtprecv.c
Found open with O_CREAT and no mode.
	    open(filename, _O_BINARY | O_WRONLY | O_CREAT | O_TRUNC);

Checking ./libsilc/silc-toolkit-1.0.2/lib/silcclient/client_ftp.c
Found open with O_CREAT and no mode.
    session->fd = silc_file_open(path, O_RDWR | O_CREAT | O_EXCL);

Checking ./sane-backends/sane-backends-1.0.18/backend/fujitsu.c
Found open with O_CREAT and no mode.
      s->duplex_fd = open (filename, O_RDWR | O_CREAT | O_EXCL);

Checking ./tor/tor-0.1.2.16/src/common/util.c
Found open with O_CREAT and no mode.
    nullfd = open("/dev/null", O_CREAT | O_RDWR | O_APPEND);

Checking ./unzip/unzip-5.52/fileio.c
Found open with O_CREAT and no mode.
    fd = open(G.filename, O_WRONLY | O_LARGEFILE | O_CREAT);

Checking ./tetex/tetex-src-3.0/texk/web2c/lib/coredump.c
Found open with O_CREAT and no mode.
	int handle = open("core", O_WRONLY | O_CREAT | O_TRUNC | O_BINARY);

Checking ./net-snmp/net-snmp-5.4/agent/mibgroup/util_funcs.c
Found open with O_CREAT and no mode.
	fd = open(name, O_CREAT | O_EXCL | O_WRONLY);

Checking ./zaptel/zaptel-1.4.2.1/fxotune.c
Found open with O_CREAT and no mode.
    configfd = open(configfile, O_CREAT | O_TRUNC | O_WRONLY);

Checking ./ecryptfs-utils/ecryptfs-utils-18/src/testcases/llseek.c
Found open with O_CREAT and no mode.
    fd = open(FILENAME, (O_CREAT | O_EXCL | O_WRONLY));

Checking ./ecryptfs-utils/ecryptfs-utils-18/src/testcases/open_close.c
Found open with O_CREAT and no mode.
	fd = open(filename, (O_CREAT | O_EXCL));

Checking ./xfsdump/xfsdump-2.2.45/inventory/inv_stobj.c
Found open with O_CREAT and no mode.
	int tmpfd = open("moids", O_RDWR | O_CREAT);

Checking ./xfsdump/xfsdump-2.2.45/invutil/invidx.c
Found open with O_CREAT and no mode.
	    new_fd = open(dst_idxfile, O_CREAT | O_RDWR);

Checking ./libxml/libxml-1.8.17/nanohttp.c
Found open with O_CREAT and no mode.
	fd = open(filename, O_CREAT | O_WRONLY);

Checking ./ddrescue/dd_rescue/dd_rescue.c
Found open with O_CREAT and no mode.
	c = openfile(lname, O_WRONLY | O_CREAT /*| O_EXCL */ );

Checking ./pilot-link/pilot-link-0.12.2/src/pilot-schlep.c
Found open with O_CREAT and no mode.
    fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./nano/nano-2.0.6/src/files.c
Found open with O_CREAT and no mode.
	    fd_source = open(realname, O_RDONLY | O_CREAT);
	fd_source = open(tempname, O_RDONLY | O_CREAT);

Checking ./erlang/otp_src_R11B-2/erts/etc/unix/run_erl.c
Found open with O_CREAT and no mode.
    lfd = open_log(lognum, O_RDWR | O_APPEND | O_CREAT | O_SYNC);
	*lfd = open_log(*log_num, O_RDWR | O_CREAT | O_TRUNC | O_SYNC);

Checking ./xcdroast/xcdroast-0.98alpha15/src/io.c
Found open with O_CREAT and no mode.
    fd = open(fname, O_WRONLY | O_CREAT);

Checking ./freeciv/freeciv-2.0.9/client/connectdlg_common.c
Found open with O_CREAT and no mode.
	    fd = open(logfile, O_WRONLY | O_CREAT);

Checking ./isomaster/isomaster-1.0/isobrowser.c
Found open with O_CREAT and no mode.
    destFile = open(openIsoPathAndName, O_WRONLY | O_CREAT);

Checking ./vim/vim71/src/memfile.c
Found open with O_CREAT and no mode.
    mf_do_open(mfp, fname, O_RDWR | O_CREAT | O_EXCL);	/* try to open the file */

Checking ./mtx/mtx-1.3.11/mam2debug2.c
Found open with O_CREAT and no mode.
    outfile = open(argv[2], O_CREAT | O_WRONLY);

Checking ./mtx/mtx-1.3.11/mam2debug.c
Found open with O_CREAT and no mode.
    outfile = open(argv[2], O_CREAT | O_WRONLY);

Checking ./linphone/linphone-1.7.1/oRTP/src/tests/mrtprecv.c
Found open with O_CREAT and no mode.
	    open(filename, _O_BINARY | O_WRONLY | O_CREAT | O_TRUNC);

Checking ./linphone/linphone-1.7.1/oRTP/src/tests/tevmrtprecv.c
Found open with O_CREAT and no mode.
	    open(filename, _O_BINARY | O_WRONLY | O_CREAT | O_TRUNC);

Checking ./nx/nx-2.1.0/nx-X11/programs/xmh/miscfuncs.c
Found open with O_CREAT and no mode.
    new_fid = open(tmp_file, O_RDWR | O_CREAT);

Checking ./rgmanager/rgmanager-2.0.23/src/daemons/clurmtabd_lib.c
Found open with O_CREAT and no mode.
	    close(open(filename, O_WRONLY | O_SYNC | O_CREAT));

Checking ./glibc/glibc-20070804T2027/login/tst-grantpt.c
Found open with O_CREAT and no mode.
    fd = open(file, O_RDWR | O_CREAT);

Checking ./busybox/busybox-1.6.1/archival/unzip.c
Found open with O_CREAT and no mode.
	    dst_fd = xopen(dst_fn, O_WRONLY | O_CREAT | O_TRUNC);

Checking ./busybox/busybox-1.6.1/e2fsprogs/old_e2fsprogs/ext2fs/ismounted.c
Found open with O_CREAT and no mode.
	fd = open(TEST_FILE, O_RDWR | O_CREAT);

Checking ./busybox/busybox-1.6.1/runit/svlogd.c
Found open with O_CREAT and no mode.
	fd = xopen(ld->fnsave, O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT);
	    close(xopen("state", O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT));
	fd = xopen("newstate", O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT);

Checking ./busybox/busybox-1.6.1/miscutils/rx.c
Found open with O_CREAT and no mode.
    filefd = xopen(fn, O_RDWR | O_CREAT | O_TRUNC);

Checking ./busybox/busybox-1.6.1/networking/ftpgetput.c
Found open with O_CREAT and no mode.
	    fd_local = xopen(local_path, O_CREAT | O_TRUNC | O_WRONLY);

Checking ./jed/jed-0.99-18/src/file.c
Found open with O_CREAT and no mode.
	return open(file, O_WRONLY | O_APPEND | O_CREAT | O_BINARY);

Checking ./mono/mono-1.2.4/mono/arch/alpha/test.c
Found open with O_CREAT and no mode.
    int fd = open("bad.out", O_CREAT | O_TRUNC);

Checking ./proftpd/proftpd-1.3.0a/modules/mod_xfer.c
Found open with O_CREAT and no mode.
	stor_fh = pr_fsio_open(session.xfer.path, O_CREAT | O_WRONLY);

Checking ./proftpd/proftpd-1.3.0a/src/fsio.c
Found open with O_CREAT and no mode.
    dst_fh = pr_fsio_open(dst, O_WRONLY | O_CREAT);

Checking ./dvb-apps/linuxtv-dvb-apps-1.1.1/test/test.c
Found open with O_CREAT and no mode.
    int vout = open("qv", O_RDWR | O_CREAT);
    int aout = open("qa", O_RDWR | O_CREAT);


-- 
http://www.codemonkey.org.uk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]