applied fix from dev list and debian reviewers

This commit is contained in:
anselm@garbe.us 2012-02-11 10:40:32 +01:00
parent 3da24a7481
commit a0e269b6bd
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
MIT/X Consortium License MIT/X Consortium License
© 2009 Enno Boland <g s01 de> © 2011-2012 Troels Henriksen <athas@sigkill.at>
© 2009-2011 Enno Boland <g s01 de>
Permission is hereby granted, free of charge, to any person obtaining a Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"), copy of this software and associated documentation files (the "Software"),

View File

@ -1,5 +1,5 @@
# surf version # surf version
VERSION = 0.4.1 VERSION = 0.5
# Customize below to fit your system # Customize below to fit your system

4
surf.c
View File

@ -127,7 +127,7 @@ buildpath(const char *path) {
apath = g_strconcat(g_get_home_dir(), "/", path, NULL); apath = g_strconcat(g_get_home_dir(), "/", path, NULL);
if((p = strrchr(apath, '/'))) { if((p = strrchr(apath, '/'))) {
*p = '\0'; *p = '\0';
g_mkdir_with_parents(apath, 0755); g_mkdir_with_parents(apath, 0700);
*p = '/'; *p = '/';
} }
/* creating file (gives error when apath ends with "/") */ /* creating file (gives error when apath ends with "/") */
@ -867,7 +867,7 @@ main(int argc, char *argv[]) {
showxid = TRUE; showxid = TRUE;
break; break;
case 'v': case 'v':
die("surf-"VERSION", © 2009 surf engineers, see LICENSE for details\n"); die("surf-"VERSION", ©2009-2012 surf engineers, see LICENSE for details\n");
default: default:
usage(); usage();
} }