Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37038263
en ru br
ALT Linux repos
S:1.0-alt1.qa2
5.0: 1.0-alt1

Group :: File tools
RPM: mundelete

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mundelete-newgcc-alt.patch
Download


diff -ur mundelete.orig/mundelete.c mundelete/mundelete.c
--- mundelete.orig/mundelete.c	2002-06-29 14:09:26 +0400
+++ mundelete/mundelete.c	2008-09-03 19:40:38 +0400
@@ -320,8 +320,10 @@
   seek (RESSECT * SECTSIZE, SEEK_SET);
   readsect ((char *) block, FATSIZE * SECTSIZE);
   next = ((int *) ((char *) block + (clust * FILESTYPE / 8)))[0];
-  if ((clust * FILESTYPE) % 8)
-    (unsigned int) next >>= 4;
+  if ((clust * FILESTYPE) % 8) {
+    unsigned int tmp = next;
+    next = tmp >> 4;
+  }
   else if (FILESTYPE == FAT12)
     next &= 0x0FFF;
   if (is_eoclust (next))
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin