bugGNU CSSC - Bugs: bug #33152, get -g -c<date> produced...

 
 

bug #33152: get -g -c<date> produced wrong SID output

Submitter:  James Youngman <jay>
Submitted:  Sun 24 Apr 2011 08:42:34 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  jay
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 24 Apr 2011 08:42:34 PM UTC, original submission:  

Originally reported by https://sourceforge.net/users/dirkhell/ at
https://sourceforge.net/tracker/?func=detail&aid=1811617&group_id=8064&atid=108064

CSSC-1.0.1
SuSE SLES9
gcc-3.3.3

I have a valid SCCS file

>>>>>>>>>>>>>

sew:/sew/shell/v52/server/release> head -20 SCCS/s.servport.m4s
h01819
s 00001/00003/00233
d D 1.8 07/10/10 10:53:23 rl 8 7
c Header angepasst
e
s 00006/00000/00230
d D 1.7 07/10/10 10:49:58 rl 7 6
c SCCS-ID hinzugef\374gt
e
s 00039/00000/00191
d D 1.6 07/10/10 10:40:39 rl 6 5
c sewlin1 hinzugef\374gt
e
s 00004/00004/00187
d D 1.5 07/09/10 11:36:52 rl 5 4
c CAFinanz f\374r sewlin7 auf eigenen Port
e
s 00002/00002/00189
d D 1.4 07/09/10 11:33:03 rl 4 3
c CAFinanz f\374r sewlin7 auf eigenen Port
<<<<<<<<<<<<<

I use the "get -c" to catch the version from a specific datetime. I don't want to see the file itself, i just need to now the current sid of this datetime. So i use the switch "-g"
The output is:

>>>>>>>>>>>>>>>>>>>>

sew:/sew/shell/v52/server/release> get -g -c071010060000 SCCS/s.servport.m4s
get: warning: SCCS/s.servport.m4s: No id keywords.
1.8
<<<<<<<<<<<<<<<<<<<<

And SID "1.8" is wrong! I checked without using the -g and see that the correct fileversion (1.5) is given but always the highest SID was printed. The output must be

>>>>>>>>>>>>>>>>>>>>

sew:/sew/shell/v52/server/release> get -g -c071010060000 SCCS/s.servport.m4s
get: warning: SCCS/s.servport.m4s: No id keywords.
1.5
<<<<<<<<<<<<<<<<<<<<

I attached my change (diff -c) to the code to solve this bug.

James Youngman <jay>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-24 jay Attached File- Added get_minus_c_bug, #23297

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code