Your message dated Wed, 06 Apr 2005 18:32:03 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#297271: fixed in chntpw 0.99.2-4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Feb 2005 11:26:15 +0000
>From [EMAIL PROTECTED] Mon Feb 28 03:26:15 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c204041.adsl.hansenet.de (localhost.localdomain) [213.39.204.41] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D5j2U-0003r0-00; Mon, 28 Feb 2005 03:26:15 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
        id 1D5jyo-00024R-HR; Mon, 28 Feb 2005 13:26:30 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: chntpw: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment
Message-Id: <[EMAIL PROTECTED]>
Date: Mon, 28 Feb 2005 13:26:30 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: chntpw
Severity: normal
Tags: patch

When building 'chntpw' on amd64 with gcc-4.0,
I get the following error:

gcc -c -DUSEOPENSSL -g -I. -I/usr/include -Wall -O2 chntpw.c
chntpw.c: In function 'change_pw':
chntpw.c:514: error: invalid lvalue in assignment
chntpw.c:526: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:527: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:549: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:550: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:582: warning: pointer targets in passing argument 1 of 'E1' differ in 
signedness
chntpw.c:582: warning: pointer targets in passing argument 3 of 'E1' differ in 
signedness
chntpw.c:583: warning: pointer targets in passing argument 1 of 'E1' differ in 
signedness
chntpw.c:583: warning: pointer targets in passing argument 3 of 'E1' differ in 
signedness
chntpw.c:585: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:599: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:600: warning: pointer targets in passing argument 2 of 'hexprnt' 
differ in signedness
chntpw.c:624: error: invalid lvalue in assignment
chntpw.c:630: error: invalid lvalue in assignment
chntpw.c:631: error: invalid lvalue in assignment
make[1]: *** [chntpw.o] Error 1
make[1]: Leaving directory `/chntpw-0.99.2'
make: *** [build-stamp] Error 2

With the attached patch 'chntpw' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/chntpw-0.99.2/chntpw.c ./chntpw.c
--- ../tmp-orig/chntpw-0.99.2/chntpw.c  2004-01-16 21:05:02.000000000 +0000
+++ ./chntpw.c  2005-02-28 12:23:39.853046402 +0000
@@ -511,7 +511,7 @@
        printf("** LANMAN password IS however set. Will now install new 
password as NT pass instead.\n");
        printf("** NOTE: Continue at own risk!\n");
        ntpw_offs = lmpw_offs;
-       (unsigned int)*(vp+0xa8) = ntpw_offs - 0xcc;
+       *((unsigned int*)vp+0xa8) = ntpw_offs - 0xcc;
        ntpw_len = 16;
        lmpw_len = 0;
       }
@@ -621,14 +621,14 @@
           ntpw_len = 16;
           lmpw_len = 16;
           ntpw_offs -= 4;
-          (unsigned int)*(vp+0xa8) = ntpw_offs - 0xcc;
+          *((unsigned int*)vp+0xa8) = ntpw_offs - 0xcc;
           *(vp + 0xa0) = 16;
           *(vp + 0xac) = 16;
         }
         
         for (i = 0; i < 16; i++) {
-          (unsigned char)*(vp+ntpw_offs+i) = despw[i];
-          if (lmpw_len >= 16) (unsigned char)*(vp+lmpw_offs+i) = newlandes[i];
+          *(vp+ntpw_offs+i) = (char)despw[i];
+          if (lmpw_len >= 16) *(vp+lmpw_offs+i) = (char)newlandes[i];
         }
        } else {
         printf("Unable to set since it is blank.\n");
diff -urN ../tmp-orig/chntpw-0.99.2/ntreg.c ./ntreg.c
--- ../tmp-orig/chntpw-0.99.2/ntreg.c   2004-01-16 21:05:02.000000000 +0000
+++ ./ntreg.c   2005-02-28 12:23:57.934556337 +0000
@@ -2004,7 +2004,7 @@
   ALLOC(kr,1,sizeof(int)+sizeof(int));
   
   kr->len = sizeof(int);
-  (int)kr->data = dword;
+  kr->data = dword;
 
   r = put_buf2val(hdesc, kr, vofs, path, REG_DWORD);
 

---------------------------------------
Received: (at 297271-close) by bugs.debian.org; 6 Apr 2005 22:38:19 +0000
>From [EMAIL PROTECTED] Wed Apr 06 15:38:19 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DJJAB-0003RN-00; Wed, 06 Apr 2005 15:38:19 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DJJ47-0004ss-00; Wed, 06 Apr 2005 18:32:03 -0400
From: Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#297271: fixed in chntpw 0.99.2-4
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Wed, 06 Apr 2005 18:32:03 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: chntpw
Source-Version: 0.99.2-4

We believe that the bug you reported is fixed in the latest version of
chntpw, which is due to be installed in the Debian FTP archive:

chntpw_0.99.2-4.diff.gz
  to pool/non-free/c/chntpw/chntpw_0.99.2-4.diff.gz
chntpw_0.99.2-4.dsc
  to pool/non-free/c/chntpw/chntpw_0.99.2-4.dsc
chntpw_0.99.2-4_i386.deb
  to pool/non-free/c/chntpw/chntpw_0.99.2-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]> (supplier of updated chntpw 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu,  7 Apr 2005 00:24:26 +0200
Source: chntpw
Binary: chntpw
Architecture: source i386
Version: 0.99.2-4
Distribution: unstable
Urgency: low
Maintainer: Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]>
Changed-By: Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]>
Description: 
 chntpw     - NT SAM password recovery utility
Closes: 297271
Changes: 
 chntpw (0.99.2-4) unstable; urgency=low
 .
   * Fixed FTFBFS errors when compiling with gcc-4 (in amd64) with
     patch from Andreas Jochens (Closes: #297271)
Files: 
 de5db105adf017f8fe87af5f091f43d6 718 non-free/admin optional 
chntpw_0.99.2-4.dsc
 8640c017beea1b5f0df7ad09e478c2a1 27684 non-free/admin optional 
chntpw_0.99.2-4.diff.gz
 baa07abb084dbd485a5c90061ff0e875 88916 non-free/admin optional 
chntpw_0.99.2-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iQCVAwUBQlRh8PtEPvakNq0lAQL2cgP/WTbmmz6mR1bJsi6OZFPjckA0rbFzQRym
qoRbXIwbhI3LQO/WADtDck70M71n8IEi2h+y9g6OTozm/mKvOfGZx8VHPHB6e3P8
aQcYu2jkX4vA9MAMNvF2ubC+5nlgZotLV9idoxJ76RFYtEpaVGSr81N/dmSYc+AQ
/+liHSbkwUw=
=P6Kn
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to