updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / xchat-xsys / xchat-xsys-archlinux.patch
blob5663f4c3f97c5e8f4c546ac6a54edaf288dd516b
1 diff -Naur xsys-2.1.0/parse.c xsys-2.1.0.new/parse.c
2 --- xsys-2.1.0/parse.c 2006-06-03 02:14:39.000000000 +0200
3 +++ xsys-2.1.0.new/parse.c 2007-04-12 07:32:16.000000000 +0200
4 @@ -420,6 +420,8 @@
5 fgets(buffer, bsize, fp);
6 else if((fp = fopen("/etc/turbolinux-release", "r")) != NULL)
7 fgets(buffer, bsize, fp);
8 + else if((fp = fopen("/etc/arch-release", "r")) != NULL)
9 + snprintf(buffer, bsize, "ArchLinux");
10 else
11 snprintf(buffer, bsize, "Unknown Distro");
12 if(fp != NULL) fclose(fp);