bugGNU patch - Bugs: bug #66794, The patch header contains the...

 
 

bug #66794: The patch header contains the patch block, which will be applied to the source code by the patch command.

Submitter:  yixiangzhike <yixiangzhike>
Submitted:  Fri 14 Feb 2025 09:20:22 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 14 Feb 2025 09:28:20 AM UTC, comment #1: 

It is recommended that the patch identify such patches as malformed patches and remind users to rectify the patches.
@Paul Eggert <eggert@cs.ucla.edu>

yixiangzhike <yixiangzhike>
Fri 14 Feb 2025 09:20:22 AM UTC, original submission:  

There is a patch that has "@@" in the patch header, which causes patch error detection.Follow:
https://github.com/torvalds/linux/commit/0b6743bd60a56a701070b89fb80c327a44b7b3e2
When you run the patch command to apply a patch, the following information in the patch header is applied to the source code:
 --- a/include/linux/fs.h
  +++ b/include/linux/fs.h
  @@ -629,6 +629,7 @@ struct inode {
   umode_t i_mode;
   unsigned short i_opflags;
   kuid_t i_uid;
  + struct list_head i_lru; /* inode LRU list */
   kgid_t i_gid;
   unsigned int i_flags;

  @@ -690,7 +691,6 @@ struct inode {
   u16 i_wb_frn_avg_time;
   u16 i_wb_frn_history;
   #endif
  - struct list_head i_lru; /* inode LRU list */
   struct list_head i_sb_list;
   struct list_head i_wb_list; /* backing dev writeback list */
   union {

yixiangzhike <yixiangzhike>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yixiangzhike (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.15-f85b.
    Corresponding source code