Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
dosfstools
dosfstools-2.11-o_excl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dosfstools-2.11-o_excl.patch of Package dosfstools
--- mkdosfs/mkdosfs.c +++ mkdosfs/mkdosfs.c @@ -1673,7 +1673,7 @@ if (!create) { check_mount (device_name); /* Is the device already mounted? */ - dev = open (device_name, O_RDWR); /* Is it a suitable device to build the FS on? */ + dev = open (device_name, O_EXCL|O_RDWR); /* Is it a suitable device to build the FS on? */ if (dev < 0) die ("unable to open %s"); } @@ -1681,7 +1681,7 @@ off_t offset = blocks*BLOCK_SIZE - 1; char null = 0; /* create the file */ - dev = open( device_name, O_RDWR|O_CREAT|O_TRUNC, 0666 ); + dev = open( device_name, O_EXCL|O_RDWR|O_CREAT|O_TRUNC, 0666 ); if (dev < 0) die("unable to create %s"); /* seek to the intended end-1, and write one byte. this creates a
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor