Displaying 3 results from an estimated 3 matches for "num_open".
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...ut any number of machines may connect at
one time. */
+
+
#define MAX_CONNECTIONS 128
-static connection_struct *Connections;
+#define BIGGEST_NONE -1
+#define SMALLEST_NONE -1
+#define SMALLEST_UNKNOWN -2
+
+typedef struct {
+ connection_struct *Connections[MAX_CONNECTIONS];
+ int num_open;
+ int biggest_in_use;
+ int smallest_released;
+} connection_total_handler;
+
+static connection_total_handler cth;
-/* number of open connections */
-static struct bitmap *bmap;
-static int num_open;
/*****************************************************...
2007 Jul 25
3
[Bug 1345] New: closefromtest fails, sometimes
...Red Hat EL 3 x86_64)
This is because /dev/null is not being opened for read properly.
--- openssh/openbsd-compat/regress/closefromtest.c (revision 160)
+++ openssh/openbsd-compat/regress/closefromtest.c (working copy)
@@ -38,7 +38,7 @@
char buf[512];
for (i = 0; i < NUM_OPENS; i++)
- if ((fds[i] = open("/dev/null", "r")) == -1)
+ if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
exit(0); /* can't test */
max = i - 1;
--
Configure bugmail: http://bugzilla.mindrot.org/...
2004 Nov 12
1
Panic in log when Win98/ME tries to print on samba 3.0.8
...printing/printing_db.c.defunc Fri Nov 12
17:03:44 2004
+++ samba-3.0.8/source/printing/printing_db.c Fri Nov 12 17:02:00 2004
@@ -32,13 +32,26 @@
struct tdb_print_db *get_print_db_byname(const char *printername)
{
+
struct tdb_print_db *p = NULL, *last_entry = NULL;
int num_open = 0;
pstring printdb_path;
BOOL done_become_root = False;
-
- SMB_ASSERT(printername != NULL);
-
+
+ /*
+ * When a Win98 or ME client tries to print
+ * the assertion killed the printjob because
+ * get_print_db_byname was called with NULL as an...