Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
mbuffer
mbuffer-20080212.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mbuffer-20080212.diff of Package mbuffer
--- Makefile.in +++ Makefile.in @@ -13,6 +13,7 @@ mandir = @mandir@/man1 RM = @RM@ INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ TARGET = mbuffer$(EXE) SOURCES = mbuffer.c @@ -33,6 +34,6 @@ distclean: clean config.status Makefile mbuffer.1 core install: $(TARGET) - -$(INSTALL) -d $(DESTDIR)$(bindir) + -$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) - $(INSTALL) mbuffer.1 $(mandir) + $(INSTALL_DATA) mbuffer.1 $(DESTDIR)$(mandir) --- mbuffer.c +++ mbuffer.c @@ -1320,8 +1320,8 @@ int main(int argc, const char **argv) if (Memmap) { infomsg("mapping temporary file to memory with %llu blocks with %llu byte (%llu kB total)...\n",Numblocks,Blocksize,(Numblocks*Blocksize) >> 10); if (!Tmpfile) { - char tmplname[] = "mbuffer-XXXXXX"; - char *tmpdir = getenv("TMPDIR") ? getenv("TMPDIR") : "/var/tmp"; + static const char tmplname[] = "mbuffer-XXXXXX"; + const char *tmpdir = getenv("TMPDIR") ? getenv("TMPDIR") : "/var/tmp"; char tfilename[sizeof(tmplname) + strlen(tmpdir) + 1]; (void) strcpy(tfilename,tmpdir); (void) strcat(tfilename,"/"); @@ -1333,7 +1333,7 @@ int main(int argc, const char **argv) (void) strcpy(Tmpfile,tfilename); infomsg("tmpfile is %s\n",Tmpfile); } else { - Tmp = open(Tmpfile,O_RDWR|O_CREAT|O_EXCL); + Tmp = open(Tmpfile,O_RDWR|O_CREAT|O_EXCL, 0600); } if (-1 == Tmp) fatal("could not create temporary file (%s): %s\n",Tmpfile,strerror(errno));
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