FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 10-30-2009, 02:24 PM
Radek Vykydal
 
Default Fix logging of isys mount/umount into program.log.

---
isys/imount.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/isys/imount.c b/isys/imount.c
index 30b6302..a62e223 100644
--- a/isys/imount.c
+++ b/isys/imount.c
@@ -119,7 +119,7 @@ int mountCommandWrapper(int mode, char *dev, char *where, char *fs,
}

programLogFD = open("/tmp/program.log",
- O_APPEND|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
+ O_APPEND|O_CREAT|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);

if (pipe(pipefd))
return IMOUNT_ERR_ERRNO;
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 10-30-2009, 02:34 PM
David Lehman
 
Default Fix logging of isys mount/umount into program.log.

On Fri, 2009-10-30 at 16:24 +0100, Radek Vykydal wrote:
> ---
> isys/imount.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

Nice. Ack.

>
> diff --git a/isys/imount.c b/isys/imount.c
> index 30b6302..a62e223 100644
> --- a/isys/imount.c
> +++ b/isys/imount.c
> @@ -119,7 +119,7 @@ int mountCommandWrapper(int mode, char *dev, char *where, char *fs,
> }
>
> programLogFD = open("/tmp/program.log",
> - O_APPEND|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
> + O_APPEND|O_CREAT|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
>
> if (pipe(pipefd))
> return IMOUNT_ERR_ERRNO;

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org