File: timeout.diff

package info (click to toggle)
afuse 0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 536 kB
  • ctags: 186
  • sloc: ansic: 1,914; sh: 985; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: afuse-0.2/src/afuse.c
===================================================================
--- afuse-0.2.orig/src/afuse.c	2008-02-19 03:46:32.000000000 +0530
+++ afuse-0.2/src/afuse.c	2008-03-14 10:54:58.000000000 +0530
@@ -1504,7 +1504,8 @@
 	fuse_opt_add_arg(&args, "-s");
 
 	// Adjust user specified timeout from seconds to microseconds as required
-	user_options.auto_unmount_delay *= 1000000;
+	if(user_options.auto_unmount_delay != UINT64_MAX)
+	    user_options.auto_unmount_delay *= 1000000;
 
 	auto_unmount_ph_init(&auto_unmount_ph);