summary refs log tree commit diff
path: root/pkgs/os-specific/linux/davfs2/davfs2-install.patch
blob: 93e9b09a9145304d1c007878ad5f9d951bcf0afc (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
diff -rc davfs2-1.4.1/src/Makefile.in davfs2-1.4.1-new/src/Makefile.in
*** davfs2-1.4.1/src/Makefile.in	2009-06-13 18:31:22.000000000 +0200
--- davfs2-1.4.1-new/src/Makefile.in	2009-09-22 09:12:09.523154536 +0200
***************
*** 489,500 ****
  
  
  install-exec-hook:
! 	chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; \
! 	if test "$(sbindir)" != "$(ssbindir)"; then \
! 	  $(mkinstalldirs) $(DESTDIR)$(ssbindir); \
! 	  $(LN_S) -f $(DESTDIR)$(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \
! 	  $(LN_S) -f $(DESTDIR)$(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \
! 	fi
  
  uninstall-hook:
  	if test "$(sbindir)" != "$(ssbindir)"; then \
--- 489,495 ----
  
  
  install-exec-hook:
! 	chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; 
  
  uninstall-hook:
  	if test "$(sbindir)" != "$(ssbindir)"; then \
diff -rc davfs2-1.4.1/src/mount_davfs.c davfs2-1.4.1-new/src/mount_davfs.c
*** davfs2-1.4.1/src/mount_davfs.c	2009-06-12 11:54:58.000000000 +0200
--- davfs2-1.4.1-new/src/mount_davfs.c	2009-09-22 09:45:21.462726033 +0200
***************
*** 2327,2335 ****
      }
      if (st.st_uid != geteuid())
          error(EXIT_FAILURE, 0, _("file %s has wrong owner"), filename);
!     if ((st.st_mode &
            (S_IXUSR | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)) != 0)
!         error(EXIT_FAILURE, 0, _("file %s has wrong permissions"), filename);
  
      FILE *file = fopen(filename, "r");
      if (!file) {
--- 2327,2335 ----
      }
      if (st.st_uid != geteuid())
          error(EXIT_FAILURE, 0, _("file %s has wrong owner"), filename);
! /*    if ((st.st_mode &
            (S_IXUSR | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)) != 0)
!         error(EXIT_FAILURE, 0, _("file %s has wrong permissions"), filename); */
  
      FILE *file = fopen(filename, "r");
      if (!file) {