lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1108271829590.27813@swampdragon.chaosbits.net>
Date:	Sat, 27 Aug 2011 18:36:12 +0200 (CEST)
From:	Jesper Juhl <jj@...osbits.net>
To:	Andi Kleen <andi@...stfloor.org>
cc:	Greg KH <greg@...ah.com>, torvalds@...ux-foundation.org,
	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH] Add a personality to report 2.6.x version numbers

On Sat, 27 Aug 2011, Andi Kleen wrote:

> > > wget ftp://ftp.kernel.org/pub/linux/kernel/people/ak/uname26/uname26.c
> > > gcc -o uname26 uname26.c
> > > ./uname26 program
> > 
> > I hate to ask, but can you put a proper copyright and license on this
> > file so that distros can distribute it?
> 
> I assumed it's too trivial for that.
> 
> Anyways I put a GPL license on it now.
> 

Hi Andi

I assume the mention of "mcelog" is a cut'n'paste error and that it really 
should have been "uname26", so here's a trivial patch to correct that.
I also deleted all trailing whitespace and used EXIT_FAILURE rather than 1 
for exit().

Take it or leave it :)

Signed-off-by: Jesper Juhl <jj@...osbits.net>
---

--- uname26.c.orig	2011-08-27 18:26:46.538017670 +0200
+++ uname26.c	2011-08-27 18:32:21.032163525 +0200
@@ -1,19 +1,19 @@
-/* Copyright (C) 2011 Intel Corporation 
+/* Copyright (C) 2011 Intel Corporation
    Author: Andi Kleen
    Set 2.6.x personality
 
-   mcelog is free software; you can redistribute it and/or
+   uname26 is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public
    License as published by the Free Software Foundation; version
    2.
 
-   mcelog is distributed in the hope that it will be useful,
+   uname26 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    General Public License for more details.
 
    You should find a copy of v2 of the GNU General Public License somewhere
-   on your Linux system; if not, write to the Free Software Foundation, 
+   on your Linux system; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
 #include <sys/personality.h>
 #include <stdio.h>
@@ -26,15 +26,15 @@
 
 int main(int ac, char **av)
 {
-	if (!av[1]) { 
+	if (!av[1]) {
 		fprintf(stderr, "Usage: uname26 program ...\n"
 				"Run program with the uname 2.6 personality\n");
-		exit(1);
+		exit(EXIT_FAILURE);
 	}
 	if (personality(PER_LINUX | UNAME26) < 0)
 		perror("personality"), exit(1);
-	
+
 	execvp(av[1], av + 1);
 	fprintf(stderr, "Cannot execute %s: %s\n", av[1], strerror(errno));
-	exit(1);
+	exit(EXIT_FAILURE);
 }


-- 
Jesper Juhl <jj@...osbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ