Add gpg signing to quilt mail
RFC PATCH v2 1/1 Add gpg signing to quilt mail
quilt mail: Add way to sign mail with GPG
After the attack of kernel.org, several kernel developers are getting paranoid about who is really who. A lot of focus is on signing emails that verify who people really are using GPG signatures.
Unfortunately, there's no way to sign quilt email as it goes out. This patch fixes that.
Added the quilt mail option --pass to allow the user to enter a passphrase and sign their email patches.
Thanks to Peter Zijlstra for recommending --use-agent to solve the issues of both the passphrase in unlocked memory, and typing something wrong.
These changes were done in /usr/share/quilt.
mail +18 -3
@@ -63,6 +63,9 @@ first, and a last patch name of \`-' denotes the last patch in the series. --reply-to message Add the appropriate headers to reply to the specified message. + +--pass + Sign email with GPG signatures. " "/usr/share/doc/quilt/README.MAIL" exit 0 else
@@ -115,6 +118,15 @@ references_header() { [ -n "$references" ] && echo "References: $references" } +sign_mail() +{ + if [ -z "$opt_pass" ]; then + cat + else + $QUILT_DIR/scripts/gpgmail.pl --agent + fi +} + process_mail() { local tmpfile=$(gen_tempfile)
@@ -132,12 +144,12 @@ process_mail() ${QUILT_SENDMAIL_ARGS--f "$opt_sender"} "$@" $QUILT_DIR/scripts/edmail --charset $opt_charset \ --remove-header Bcc "$@" < $tmpfile \ - | ${QUILT_SENDMAIL:-sendmail} \ + | sign_mail | ${QUILT_SENDMAIL:-sendmail} \ ${QUILT_SENDMAIL_ARGS--f "$opt_sender"} "$@" else local from_date=$(LC_ALL=C date "+%a %b %e %H:%M:%S %Y") echo "From $opt_sender_address $from_date" - sed -e 's/^From />From /' $tmpfile + sed -e 's/^From />From /' $tmpfile | sign_mail echo fi rm -f $tmpfile
@@ -154,7 +166,7 @@ join_lines() { } options=`getopt -o m:h --long from:,to:,cc:,bcc:,subject: \ - --long send,mbox:,charset:,sender: \ + --long send,pass,mbox:,charset:,sender: \ --long prefix:,reply-to:,signature: -- "$@"` if [ $? -ne 0 ]
@@ -212,6 +224,9 @@ do --reply-to) opt_reply_to=$2 shift 2 ;; + --pass) + opt_pass=1 + shift ;; --signature) if [ "$2" = - ] then
scripts/gpgmail.pl new file +124 -0
124 lines not on this page · raw message
Quoted 1 line · Steven Rostedt
+my $pgp =
gpg --simple-sk-checksum -a --detach-sign $pass --output - < $tmpfile;
Try not to use gpg when calling from scripts, use gpgv instead, it handles things much better, and sets the return value correctly so you can check it (which I don't think you do here.)
Now if only someone can get quilt working properly for git's "split"
subject: lines, I would be very happy...
thanks,
greg k-h
Quoted 7 lines · Greg KH
Quoted 1 line · Steven Rostedt
+my $pgp =
gpg --simple-sk-checksum -a --detach-sign $pass --output - < $tmpfile;Try not to use gpg when calling from scripts, use gpgv instead, it handles things much better, and sets the return value correctly so you can check it (which I don't think you do here.)
gpgv is only usable to verify contents (equivalent to gpg --verify). For other things you need to use gpg's --status-fd feature, *or* (perhaps better) run gpgv on the output to verify that you actually got a good signature.
-hpa
Quoted 9 lines · H. Peter Anvin
Quoted 7 lines · Greg KH
Quoted 1 line · Steven Rostedt
+my $pgp =
gpg --simple-sk-checksum -a --detach-sign $pass --output - < $tmpfile;Try not to use gpg when calling from scripts, use gpgv instead, it handles things much better, and sets the return value correctly so you can check it (which I don't think you do here.)
Quoted 4 lines
gpgv is only usable to verify contents (equivalent to gpg --verify). For other things you need to use gpg's --status-fd feature, *or* (perhaps better) run gpgv on the output to verify that you actually got a good signature.
Oh! That would probably save me a lot of debugging time to verify it directly in the script :) I've been sending lots of patches to myself to see if it showed a valid sig or not, then try to figure out what when wrong.
I could write a gpgverifymail.pl, to confirm that the patch that is going out is correct.
Yeah, I think another temp file would be the right thing here to fail nicely on issues with pgp.
Thanks!
-- Steve
Quoted 9 lines · H. Peter Anvin
Quoted 7 lines · Greg KH
Quoted 1 line · Steven Rostedt
+my $pgp =
gpg --simple-sk-checksum -a --detach-sign $pass --output - < $tmpfile;Try not to use gpg when calling from scripts, use gpgv instead, it handles things much better, and sets the return value correctly so you can check it (which I don't think you do here.)
Quoted 4 lines
gpgv is only usable to verify contents (equivalent to gpg --verify). For other things you need to use gpg's --status-fd feature, *or* (perhaps better) run gpgv on the output to verify that you actually got a good signature.
Ah, ok, then nevermind, I guess gpg is correct here.
greg k-h
Quoted 4 lines · H. Peter Anvin
gpgv is only usable to verify contents (equivalent to gpg --verify). For other things you need to use gpg's --status-fd feature, *or* (perhaps better) run gpgv on the output to verify that you actually got a good signature.
Hmm, gpgv is not quite equivalent to gpg --verify. With gpgv I get the following error:
$ gpgv /tmp/gpgvmail-s.x /tmp/gpgvmail-d.x gpgv: keyblock resource `/home/rostedt/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Tue 04 Oct 2011 02:35:50 PM EDT using RSA key ID C66DAA00 gpgv: Can't check signature: public key not found
I don't have a "trustedkeys.gpg" file. Do I need to generate one?
Using gpg --verify, it doesn't complain:
$ gpg --verify /tmp/gpgvmail-s.x /tmp/gpgvmail-d.x gpg: Signature made Tue 04 Oct 2011 02:35:50 PM EDT using RSA key ID C66DAA00 gpg: Good signature from "Steven Rostedt (Der Hacker) <[email protected]>"
-- Steve
Quoted 10 lines · Steven Rostedt
Hmm, gpgv is not quite equivalent to gpg --verify. With gpgv I get the following error:
$ gpgv /tmp/gpgvmail-s.x /tmp/gpgvmail-d.x gpgv: keyblock resource `/home/rostedt/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Tue 04 Oct 2011 02:35:50 PM EDT using RSA key ID C66DAA00 gpgv: Can't check signature: public key not found
Quoted 8 lines
I don't have a "trustedkeys.gpg" file. Do I need to generate one?
Using gpg --verify, it doesn't complain:
$ gpg --verify /tmp/gpgvmail-s.x /tmp/gpgvmail-d.x gpg: Signature made Tue 04 Oct 2011 02:35:50 PM EDT using RSA key ID C66DAA00 gpg: Good signature from "Steven Rostedt (Der Hacker) <[email protected]>"
gpgv looks at trustedkeys.gpg by default; it's just a different public keyring. The *big* difference between gpgv and gpg is that the former doesn't consult the trustdb *at all*.
-hpa
Quoted 15 lines · H. Peter Anvin
Quoted 14 lines · Steven Rostedt
Hmm, gpgv is not quite equivalent to gpg --verify. With gpgv I get the following error:
$ gpgv /tmp/gpgvmail-s.x /tmp/gpgvmail-d.x gpgv: keyblock resource `/home/rostedt/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Tue 04 Oct 2011 02:35:50 PM EDT using RSA key ID C66DAA00 gpgv: Can't check signature: public key not foundI don't have a "trustedkeys.gpg" file. Do I need to generate one?
Using gpg --verify, it doesn't complain:
Quoted 8 lines
Quoted 4 lines
$ gpg --verify /tmp/gpgvmail-s.x /tmp/gpgvmail-d.x gpg: Signature made Tue 04 Oct 2011 02:35:50 PM EDT using RSA key ID C66DAA00 gpg: Good signature from "Steven Rostedt (Der Hacker) <[email protected]>"gpgv looks at trustedkeys.gpg by default; it's just a different public keyring. The *big* difference between gpgv and gpg is that the former doesn't consult the trustdb *at all*.
But I'm using this to test what it generated. Not what it received. If you don't trust your own keys than what should you trust ;)
I'm going to use gpg to generate your own key, then run this to test if it worked.
I guess I could add an option to verify before you send if you are paranoid.
quilt mail --send --sign --verify ...
Without --verify, it can use gpg to still make sure the key works, with --verify it would use gpgv.
Oh this reminds me. I need to change --pass to --sign.
-- Steve
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Andreas Gruenbacher
Yes, please. Also please use
Getopt::Longin the Perl script, and send a patch relative to the quilt repo. I unfortunately can't help with how to beat gpg into behaving right.
Where do I find the official quilt repo? Doing google searches only leads me to knitting sites. Which is actually quite helpful as the winter temperatures are coming around the corner.
-- Steve
Quoted 9 lines · Steven Rostedt
Quoted 3 lines · Andreas Gruenbacher
Yes, please. Also please use
Getopt::Longin the Perl script, and send a patch relative to the quilt repo. I unfortunately can't help with how to beat gpg into behaving right.Where do I find the official quilt repo? Doing google searches only leads me to knitting sites. Which is actually quite helpful as the winter temperatures are coming around the corner.
http://savannah.nongnu.org/git/?group=quilt
josh
Quoted 9 lines · Steven Rostedt
Quoted 3 lines · Andreas Gruenbacher
Yes, please. Also please use
Getopt::Longin the Perl script, and send a patch relative to the quilt repo. I unfortunately can't help with how to beat gpg into behaving right.Where do I find the official quilt repo? Doing google searches only leads me to knitting sites. Which is actually quite helpful as the winter temperatures are coming around the corner.
It's a normal (non-)GNU Savannah project:
git clone git://git.savannah.nongnu.org/quilt.git
Andreas
Quoted 6 lines · Greg KH
Quoted 1 line · Steven Rostedt
+my $pgp =
gpg --simple-sk-checksum -a --detach-sign $pass --output - < $tmpfile;Try not to use gpg when calling from scripts, use gpgv instead, it handles things much better, and sets the return value correctly so you can check it (which I don't think you do here.)
You're right, I don't check the return value. I haven't figured out a good way to pass that back to the script. Hmm, an error in the pipe would kill the pipe.
Quoted 3 lines
Now if only someone can get quilt working properly for git's "split"
subject: lines, I would be very happy...
What issues do you have? I use quilt to send git patches all the time.
What are git's "split" subject: lines?
-- Steve
Quoted 5 lines · Steven Rostedt
Quoted 2 lines · Greg KH
Now if only someone can get quilt working properly for git's "split"
subject: lines, I would be very happy...What issues do you have? I use quilt to send git patches all the time.
The other way around, I import git patches into quilt for the stable series, and then when sending emails out, quilt messes up the subject lines because it was split across two lines.
Quoted 1 line
What are git's "split" subject: lines?
Do the following:
$ git show --pretty=email 21d17dd2a377ba894f26989915eb3c6e427a3656
and look at how the Subject line is formatted:
Subject: [PATCH] ASoC: Fix setting update bits for WM8753_LADC and WM8753_RADC
Which is legal for email subject lines. But quilt can't handle this and ends up thinking the data after the Subject: line is part of the patch text body and messes stuff up when doing 'quilt mail' later.
So I have to remember to edit the subject: lines all the time, and cringe when I forget.
Oh, then there's the issue of quilt not handling ',' in a Signed-off-by line as a valid email address name, but I've been living with that one for years...
thanks,
greg k-h
Quoted 13 lines · Greg KH
Quoted 1 line
What are git's "split" subject: lines?
Do the following:
$ git show --pretty=email 21d17dd2a377ba894f26989915eb3c6e427a3656and look at how the Subject line is formatted:
Subject: [PATCH] ASoC: Fix setting update bits for WM8753_LADC and WM8753_RADCWhich is legal for email subject lines. But quilt can't handle this and ends up thinking the data after the Subject: line is part of the patch text body and messes stuff up when doing 'quilt mail' later.
Quoted 7 lines
So I have to remember to edit the subject: lines all the time, and cringe when I forget.
Oh, then there's the issue of quilt not handling ',' in a Signed-off-by line as a valid email address name, but I've been living with that one for years...
Hmm, while I'm currently working under the quilt hood, I'll see if I could get some patches here to help you out ;)
-- Steve
Quoted 7 lines · Steven Rostedt
Quoted 5 lines · Greg KH
Quoted 1 line
What are git's "split" subject: lines?
Do the following:
$ git show --pretty=email 21d17dd2a377ba894f26989915eb3c6e427a3656
Quoted 7 lines
Quoted 7 lines
and look at how the Subject line is formatted:
Subject: [PATCH] ASoC: Fix setting update bits for WM8753_LADC and WM8753_RADCWhich is legal for email subject lines. But quilt can't handle this and ends up thinking the data after the Subject: line is part of the patch text body and messes stuff up when doing 'quilt mail' later.
Aah, all this email parsing code is so ugly. I think it works now though.
Quoted 3 lines
Quoted 3 lines
Oh, then there's the issue of quilt not handling ',' in a Signed-off-by line as a valid email address name, but I've been living with that one for years...
That's not even valid in email addresses. The proper way would be to double-quote the "display name" which probably contains the comma, but then quilt's edmail script still won't understand it. Is this a real problem?
Andreas
Quoted 12 lines · Andreas Gruenbacher
Quoted 11 lines · Steven Rostedt
Quoted 9 lines · Greg KH
Quoted 1 line
What are git's "split" subject: lines?
Do the following:
$ git show --pretty=email 21d17dd2a377ba894f26989915eb3c6e427a3656and look at how the Subject line is formatted:
Subject: [PATCH] ASoC: Fix setting update bits for WM8753_LADC and WM8753_RADC
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Which is legal for email subject lines. But quilt can't handle this and ends up thinking the data after the Subject: line is part of the patch text body and messes stuff up when doing 'quilt mail' later.
Aah, all this email parsing code is so ugly. I think it works now though.
"now" meaning which version of quilt? I still see this on 0.48 if that matters.
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Oh, then there's the issue of quilt not handling ',' in a Signed-off-by line as a valid email address name, but I've been living with that one for years...
That's not even valid in email addresses. The proper way would be to double-quote the "display name" which probably contains the comma, but then quilt's edmail script still won't understand it. Is this a real problem?
Yes, quoting is the correct thing to do, but that does not usually happen in "Signed-off-by:" lines in kernel patches.
Actually, I think this is even a problem when the name is quoted properly, I've had to fix that up in patches by hand.
And yes, this is a problem, I run into at least 1-2 patches per stable kernel release with this issue. I looked into fixing it and somehow the email parsing logic was wierd and I couldn't figure out how to resolve it.
thanks,
greg k-h
Quoted 2 lines · Greg KH
"now" meaning which version of quilt? I still see this on 0.48 if that matters.
In the repository (master branch).
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Oh, then there's the issue of quilt not handling ',' in a Signed-off-by line as a valid email address name, but I've been living with that one for years...
That's not even valid in email addresses. The proper way would be to double-quote the "display name" which probably contains the comma, but then quilt's edmail script still won't understand it. Is this a real problem?
Quoted 5 lines
Yes, quoting is the correct thing to do, but that does not usually happen in "Signed-off-by:" lines in kernel patches.
Actually, I think this is even a problem when the name is quoted properly, I've had to fix that up in patches by hand.
Yes, proper quoting currently isn't enough.
Quoted 4 lines
And yes, this is a problem, I run into at least 1-2 patches per stable kernel release with this issue. I looked into fixing it and somehow the email parsing logic was wierd and I couldn't figure out how to resolve it.
Okay, I'll have another look ...
Andreas
Quoted 7 lines · Andreas Gruenbacher
Quoted 5 lines · Greg KH
Yes, quoting is the correct thing to do, but that does not usually happen in "Signed-off-by:" lines in kernel patches.
Actually, I think this is even a problem when the name is quoted properly, I've had to fix that up in patches by hand.
Quoted 8 lines
Yes, proper quoting currently isn't enough.
Quoted 4 lines
And yes, this is a problem, I run into at least 1-2 patches per stable kernel release with this issue. I looked into fixing it and somehow the email parsing logic was wierd and I couldn't figure out how to resolve it.
Okay, I'll have another look ...
I've tried to address this as follows now:
commit f3e7822028616014f933b99d05f42fc028f8d12c
Author: Andreas Gruenbacher <[email protected]> Date: Wed Oct 5 12:57:48 2011 +0200
quilt mail: Allow commas in Signed-off-by and Acked-by lines
The standard quilt_mail_patch_filter() in quilt mail tries to extract email addresses from Signed-off-by and Acked-by lines. It adds Cc headers with those addresses.
Signed-off-by and Acked-by lines sometimes contain commas as part of the address. When put in recipient headers (To, Cc, Bcc), the commas are interpreted as separators, which breaks things.
Try to recognize this case and add the appropriate quotes. For example, the email address in ``Signed-off-by: Gruenbacher, Andreas <[email protected]>'' is now extracted as ``"Gruenbacher, Andreas" <[email protected]>''.
Note that quilt_mail_patch_filter() can be overridden in .quiltrc; you may need to update your .quiltrc.
commit c6750845136ff21eb13bc99ec7a6e1689100a13a
Author: Andreas Gruenbacher <[email protected]> Date: Wed Oct 5 12:08:05 2011 +0200
quilt mail: Support double quoted special characters in email adresses
Addresses like "Gruenbacher, Andreas" <[email protected]> will work now.
Please give it a shot.
Thanks,
Andreas
Quoted 44 lines · Andreas Gruenbacher
Quoted 7 lines · Andreas Gruenbacher
Quoted 5 lines · Greg KH
Yes, quoting is the correct thing to do, but that does not usually happen in "Signed-off-by:" lines in kernel patches.
Actually, I think this is even a problem when the name is quoted properly, I've had to fix that up in patches by hand.
Quoted 8 lines
Yes, proper quoting currently isn't enough.
Quoted 4 lines
And yes, this is a problem, I run into at least 1-2 patches per stable kernel release with this issue. I looked into fixing it and somehow the email parsing logic was wierd and I couldn't figure out how to resolve it.
Okay, I'll have another look ...
I've tried to address this as follows now:
commit
f3e7822028616014f933b99d05f42fc028f8d12cAuthor: Andreas Gruenbacher <[email protected]> Date: Wed Oct 5 12:57:48 2011 +0200quilt mail: Allow commas in Signed-off-by and Acked-by lines
The standard
quilt_mail_patch_filter()in quilt mail tries to extract email addresses from Signed-off-by and Acked-by lines. It adds Cc headers with those addresses.Signed-off-by and Acked-by lines sometimes contain commas as part of the address. When put in recipient headers (To, Cc, Bcc), the commas are interpreted as separators, which breaks things.
Try to recognize this case and add the appropriate quotes. For example, the email address in ``Signed-off-by: Gruenbacher, Andreas <[email protected]>'' is now extracted as ``"Gruenbacher, Andreas" <[email protected]>''.
Note that
quilt_mail_patch_filter()can be overridden in .quiltrc; you may need to update your .quiltrc.commit
c6750845136ff21eb13bc99ec7a6e1689100a13aAuthor: Andreas Gruenbacher <[email protected]> Date: Wed Oct 5 12:08:05 2011 +0200
Quoted 6 lines
quilt mail: Support double quoted special characters in email adresses
Addresses like "Gruenbacher, Andreas" <[email protected]> will work now.
Please give it a shot.
Thanks for doing this. I can't seem to find the git tree for quilt at the moment, any pointers to where it is?
greg k-h
Quoted 30 lines · Greg KH
Quoted 29 lines · Andreas Gruenbacher
I've tried to address this as follows now:
commit
f3e7822028616014f933b99d05f42fc028f8d12c
Author: Andreas Gruenbacher <[email protected]>
Date: Wed Oct 5 12:57:48 2011 +0200quilt mail: Allow commas in Signed-off-by and Acked-by lines
The standard
quilt_mail_patch_filter()in quilt mail tries to extract email addresses from Signed-off-by and Acked-by lines. It adds Cc headers with those addresses.Signed-off-by and Acked-by lines sometimes contain commas as part of the address. When put in recipient headers (To, Cc, Bcc), the commas are interpreted as separators, which breaks things.
Try to recognize this case and add the appropriate quotes. For example, the email address in ``Signed-off-by: Gruenbacher, Andreas <[email protected]>'' is now extracted as ``"Gruenbacher, Andreas" <[email protected]>''.
Note that
quilt_mail_patch_filter()can be overridden in .quiltrc; you may need to update your .quiltrc.commit
c6750845136ff21eb13bc99ec7a6e1689100a13a
Author: Andreas Gruenbacher <[email protected]>
Date: Wed Oct 5 12:08:05 2011 +0200quilt mail: Support double quoted special characters in email adresses
Quoted 7 lines
Quoted 4 lines
Addresses like "Gruenbacher, Andreas" <[email protected]> will work now.
Please give it a shot.
Thanks for doing this. I can't seem to find the git tree for quilt at the moment, any pointers to where it is?
http://savannah.nongnu.org/git/?group=quilt
josh
Quoted 6 lines · Steven Rostedt
Added the quilt mail option --pass to allow the user to enter a passphrase and sign their email patches.
Thanks to Peter Zijlstra for recommending --use-agent to solve the issues of both the passphrase in unlocked memory, and typing something wrong.
How about another option that also allows you to pick they key used for signing things?
Quoted 10 lines · Peter Zijlstra
Quoted 6 lines · Steven Rostedt
Added the quilt mail option --pass to allow the user to enter a passphrase and sign their email patches.
Thanks to Peter Zijlstra for recommending --use-agent to solve the issues of both the passphrase in unlocked memory, and typing something wrong.
How about another option that also allows you to pick they key used for signing things?
I already thought about that. I wanted to get this working first, and add that as a new "feature" ;)
-- Steve
Quoted 2 lines · Peter Zijlstra
How about another option that also allows you to pick they key used for signing things?
Are there many people that will be signing with a key other than their default key? Or is a 'default-key' entry in ~/.gnupg/gpg.conf sufficient?
Quoted 8 lines · On Tue, 2011-10-04 at 15:20 -0400, [email protected] wrote:
Quoted 2 lines · Peter Zijlstra
How about another option that also allows you to pick they key used for signing things?
Are there many people that will be signing with a key other than their default key? Or is a 'default-key' entry in
~/.gnupg/gpg.confsufficient?
Until I switched my default key, I was.
-- Steve
RFC PATCH v2 1/1 Add
In reply to Steven Rostedtsince we're all happily sharing quilt hackery, let me hijack this thread and share one I've been carrying around for a while.
I use the below patch to run a script like:
#!/bin/bash
if [ -x ./scripts/chechpatch.pl ]; then
./scripts/checkpatch.pl $1
fi
---
usr/share/quilt/refresh renamed from usr/share/quilt/refresh.orig +4 -0
@@ -310,6 +310,10 @@ cat $tmp_patch >> $tmp_result +if [ -n $QUILT_REFRESH_EXT ] ; then + $QUILT_REFRESH_EXT $tmp_result +fi + mkdir -p $(dirname $patch_file) if [ -e $patch_file ] && \
Re: [RFC][PATCH v2][QUILT] Add
Quoted 16 lines · On Thu, 06 Oct 2011 12:27:37 +0200 Peter Zijlstra <[email protected]>…
since we're all happily sharing quilt hackery, let me hijack this thread and share one I've been carrying around for a while.
I use the below patch to run a script like:
#!/bin/bash
if [ -x
./scripts/chechpatch.pl]; then
./scripts/checkpatch.pl$1
fi---
usr/share/quilt/refresh line 314
Quoted 5 lines
usr/share/quilt/refresh renamed from usr/share/quilt/refresh.orig +2
-0@@ -310,6 +310,10 @@ cat $tmp_patch >> $tmp_result +if [ -n $QUILT_REFRESH_EXT ] ; then + $QUILT_REFRESH_EXT $tmp_result
else
sudo rm -rf /
Quoted 5 lines
usr/share/quilt/refresh renamed from usr/share/quilt/refresh.orig +2
-0+fi + mkdir -p $(dirname $patch_file) if [ -e $patch_file ] && \
Re: [RFC][PATCH v2][QUILT] Add
Quoted 19 lines · Andrew Morton
Quoted 17 lines · On Thu, 06 Oct 2011 12:27:37 +0200 Peter Zijlstra <[email protected]>…
since we're all happily sharing quilt hackery, let me hijack this thread and share one I've been carrying around for a while.
I use the below patch to run a script like:
#!/bin/bash
if [ -x
./scripts/chechpatch.pl]; then
./scripts/checkpatch.pl$1
fi---
usr/share/quilt/refresh renamed from usr/share/quilt/refresh.orig +0
-0@@ -310,6 +310,10 @@
Quoted 6 lines
usr/share/quilt/refresh line 314
Quoted 4 lines
usr/share/quilt/refresh renamed from usr/share/quilt/refresh.orig +2
-0cat $tmp_patch >> $tmp_result +if [ -n $QUILT_REFRESH_EXT ] ; then + $QUILT_REFRESH_EXT $tmp_resultelse
sudo rm -rf /
I think I now know who cracked kernel.org.
-- Steve
Quoted 5 lines
Quoted 5 lines
usr/share/quilt/refresh renamed from usr/share/quilt/refresh.orig +2
-0+fi + mkdir -p $(dirname $patch_file) if [ -e $patch_file ] && \