diff --git a/procps-3.2.8-pmap-smaps-rml-2.patch b/procps-3.2.8-pmap-smaps-rml-2.patch index a144a47..84295a4 100644 --- a/procps-3.2.8-pmap-smaps-rml-2.patch +++ b/procps-3.2.8-pmap-smaps-rml-2.patch @@ -91,8 +91,8 @@ +The procps package is maintained by Albert Calahan. Please send +bug reports to . --- pmap.c -+++ pmap.c 2010-03-02 15:16:14.000127413 +0000 -@@ -1,372 +1,421 @@ ++++ pmap.c 2010-12-03 16:55:52.268426585 +0000 +@@ -1,372 +1,428 @@ /* - * Copyright 2002 by Albert Cahalan; all rights reserved. - * This file may be used subject to the terms and conditions of the @@ -347,10 +347,17 @@ + if (!doswap) + goto out; + -+ /* get swap */ ++ /* get and ignore anonymous */ + if (!fgets(buff, BUFFERSIZE, smaps_fp)) + return 1; + ++ assigned = sscanf(buff, "Anonymous: %lld", &data); ++ ++ /* get swap */ ++ if (assigned == 1) ++ if(!fgets(buff, BUFFERSIZE, smaps_fp)) ++ return 1; ++ + assigned = sscanf(buff, "Swap: %lld", &data); + if (assigned != 1) + return 1; diff --git a/procps.changes b/procps.changes index dd0f2ef..59eb8c3 100644 --- a/procps.changes +++ b/procps.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 3 17:56:27 CET 2010 - werner@suse.de + +- pmap: get and ignore Anonymous tag in smaps (bnc#656826) + ------------------------------------------------------------------- Fri Oct 29 12:17:40 CEST 2010 - werner@suse.de