From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Subject: Re: [9fans] factotum problem fix From: pwfmfx@cna.ne.jp To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 5 Dec 2002 12:29:28 +0900 Topicbox-Message-UUID: 2dab242a-eacb-11e9-9e20-41e7f4b1d025 Hello, I've forgot to tell you that there was a small resource leak in factotum: term% diff /sys/src/cmd/auth/fctotum/util.c util.c 15,17c15,17 < if((srvfd = open("#s/cs", ORDWR)) >= 0){ < if(mount(srvfd, -1, "/net", MBEFORE, "") >= 0) < return 0; --- > if((srvfd = open("#s/cs", ORDWR)) < 0) > return -1; > if(mount(srvfd, -1, "/net", MBEFORE, "") < 0){ 18a19 > return -1; 20c21 < return -1; --- > close(srvfd); term% -- Mamoru Sato