summaryrefslogtreecommitdiff
path: root/~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch
blob: a3b905be9b2ddb969137be7ec1367b4f2dbfa691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- xsys-2.2.0/parse.c	2007-11-12 18:42:20.000000000 -0200
+++ xsys-2.2.0.new/parse.c	2012-03-10 20:36:46.301892322 -0200
@@ -389,32 +389,8 @@
 		}
 		snprintf(buffer, bsize, "%s \"%s\" %s", id, codename, release);
 	}
-	else if((fp = fopen("/etc/make.conf", "r")) != NULL)
-	{
-		char keywords[bsize];
-		while(fgets(buffer, bsize, fp) != NULL)
-			find_match_char(buffer, "ACCEPT_KEYWORDS", keywords);
-		if (strstr(keywords, "\"") == NULL)
-			snprintf(buffer, bsize, "Gentoo Linux (stable)");
-		else
-			snprintf(buffer, bsize, "Gentoo Linux %s", keywords);
-	}		
-	else if((fp = fopen("/etc/redhat-release", "r")) != NULL)
-		fgets(buffer, bsize, fp);
-	else if((fp = fopen("/etc/slackware-version", "r")) != NULL)
-		fgets(buffer, bsize, fp);
-	else if((fp = fopen("/etc/mandrake-release", "r")) != NULL)
-		fgets(buffer, bsize, fp);
-	else if((fp = fopen("/etc/debian_version", "r")) != NULL)
-	{
-		char release[bsize];
-		fgets(release, bsize, fp);
-		snprintf(buffer, bsize, "Debian %s", release);
-	}
-	else if((fp = fopen("/etc/SuSE-release", "r")) != NULL)
-		fgets(buffer, bsize, fp);
-	else if((fp = fopen("/etc/turbolinux-release", "r")) != NULL)
-		fgets(buffer, bsize, fp);
+	else if((fp = fopen("/etc/arch-release", "r")) != NULL)
+		snprintf(buffer, bsize, "Parabola GNU/Linux-libre");
 	else
 		snprintf(buffer, bsize, "Unknown Distro");
 	if(fp != NULL) fclose(fp);