dazuko-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dazuko-devel] dazuko_access -> file_mode is never filled


From: Roberto Gordo Saez
Subject: [Dazuko-devel] dazuko_access -> file_mode is never filled
Date: Mon, 2 Jan 2006 17:46:36 +0100
User-agent: Mutt/1.5.11

Hello again.

I've noticed that field file_mode from structure dazuko_access is always
unset. I don't know if it is done this way on purpose, but anyway, since
I've already hacked the changes for my own purpose, I post them here.

The key/value pair already exists and it is "FM=xxx". It is passed to
user space on function dazuko_handle_request_get_an_access. Is
missing the corresponding code to read the value in function
dazukoGetAccess_TS.


--- dazuko-2.1.0.orig/dazukoio_core.c   2005-07-05 21:57:25.000000000
+0200
+++ dazuko-2.1.0/dazukoio_core.c        2006-01-02 16:40:30.000000000
+0100
@@ -910,6 +910,11 @@
                        temp_acc->file_device = atoi(buffer);
                        temp_acc->set_file_device = 1;
                }
+               if (dazuko_get_value("\nFM=", request->reply_buffer,
buffer, sizeof(buffer)) == 0)
+               {
+                       temp_acc->file_mode = atoi(buffer);
+                       temp_acc->set_file_mode = 1;
+               }
        }

        free_request(&request);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]