From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <45C5B089.4080404@sandy.ru> Date: Sun, 04 Feb 2007 13:08:09 +0300 From: Dmitriy Khanzhin User-Agent: Thunderbird 1.5.0.8 (X11/20061205) MIME-Version: 1.0 To: ALT Devel discussion list X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/mixed; boundary="------------090804040302090306060004" Subject: [devel] lockdev is orphaned X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 10:03:26 -0000 Archived-At: List-Archive: List-Post: This is a multi-part message in MIME format. --------------090804040302090306060004 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hi! =ED=CE=C5 lockdev =CE=D5=D6=C5=CE =C4=CC=D1 =D3=C2=CF=D2=CB=C9 gphoto2. =EC=CF=CB=C1=CC=D8=CE=C1=D1 =D3=C2=CF=D2=CB=C1 =D7=D9=D7=C1=CC=C9=D7=C1=C5= =D4=D3=D1 =D3 =CB=D2=C9=CB=CF=CD [...] + gcc -pipe -Wall -O2 -D_GNU_SOURCE -D_REENTRANT -I/usr/src/RPM/BUILD/lockdev-1.0.1/src -Werror -fPIC -DPIC src/lockdev.c -shared -Wl,-soname=3Dliblockdev.so.1 -o liblockdev.so.1 cc1: warnings being treated as errors src/lockdev.c: In function '_dl_check_lock': src/lockdev.c:460: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result src/lockdev.c:465: warning: ignoring return value of 'link', declared wit= h attribute warn_unused_result error: Bad exit status from /usr/src/tmp/rpm-tmp.7004 (%build) =F1 =D4=C1=CB =D0=CF=CC=C1=C7=C1=C0, =DC=D4=CF =C9=DA-=DA=C1 -Werror. =F1 =D2=C5=DB=C9=CC =C5=C7=CF =CE=C5 =D4=D2=CF=C7=C1=D4=D8 =C9 =CE=C1=D7=C1= =D1=CC =CE=C1 =CB=CF=CC=C5=CE=CB=C5 =D0=C1=D4=DE. =EE=C5 =DB=C5=C4=C5=D7=D2= , =CE=CF =D3 =CE=C9=CD =D3=CF=C2=C9=D2=C1=C5=D4=D3=D1. 2 at@: =C7=CC=D1=CE=D8=D4=C5, =D0=CF=D6=C1=CC=D5=CA=D3=D4=C1. =E1 =D4=CF = =CD=CF=D6 NMU =C9=CC=C9 =D3=CF=D7=D3=C5=CD =CF=D4=C4=C1=C4=C9=D4=C5 =D0=C1= =CB=C5=D4? --=20 Rgrds, jinn. --------------090804040302090306060004 Content-Type: text/plain; name="lockdev-1.0.1-alt-fixbuild-20070204.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lockdev-1.0.1-alt-fixbuild-20070204.patch" --- lockdev-1.0.1/src/lockdev.c.dvh 2007-02-04 07:41:22 +0300 +++ lockdev-1.0.1/src/lockdev.c 2007-02-04 07:54:39 +0300 @@ -388,7 +388,8 @@ /* no check on lockname */ FILE *fd = 0; int j = 0; - + int varemp; /* empty variable */ + _debug( 3, "_dl_check_lock(lockname=%s)\n", lockname); if ( _dl_block_semaphore() ) { return -1; @@ -457,12 +458,12 @@ if ( ! (fd=fopen( tpname, "r")) ) { return -1; } - fscanf( fd, "%d", &pid2); + varemp = fscanf( fd, "%d", &pid2); if ( pid2 && (pid2 != pid_read) && ( _dl_pid_exists( pid2))) { /* lock file was changed! let us quickly * put it back again */ - link( tpname, lockname); + varemp = link( tpname, lockname); /* could fail, meaning that there is a fourth * process involved which now owns the lock, but * it is possible that the third process, who --------------090804040302090306060004--