Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 1997 12:27:01 +0800 (TSD)
From:      "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/4010: Problem with edquota -t - tmpfile not removed after exit
Message-ID:  <199707020427.MAA21297@www.tomsk.su>
Resent-Message-ID: <199707020820.BAA21297@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4010
>Category:       bin
>Synopsis:       Problem with edquota -t - tmpfile not removed after exit
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul  2 01:20:01 PDT 1997
>Last-Modified:
>Originator:     Anatoly A. Orehovsky
>Organization:
CISA Ltd.
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:

	

>Description:

edquota -t after exit leaved lost tmpfile into TMPDIR

>How-To-Repeat:

Simple:
edquota -t

>Fix:

Patch:

*** edquota.c.orig	Wed Jul  2 11:59:27 1997
--- edquota.c	Wed Jul  2 12:00:23 1997
*************** main(argc, argv)
*** 161,166 ****
--- 161,168 ----
  		if (editit(tmpfil) && readtimes(protoprivs, tmpfil))
  			putprivs(0, quotatype, protoprivs);
  		freeprivs(protoprivs);
+ 		close(tmpfd);
+ 		unlink(tmpfil);
  		exit(0);
  	}
  	for ( ; argc > 0; argc--, argv++) {

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707020427.MAA21297>