Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Simplify a little bit how code looks (mostly cosmetic) | 39a144be4687167a8fbd876b874b276fd079cccd | Catalin(ux) M. BOIE | 2021-02-02 16:43:40 |
Do not send not useful variables | bf2db44bf15cca4570440ee2eb551d9da7ef8290 | Catalin(ux) M. BOIE | 2021-02-02 16:35:00 |
Use RGFS_* environemnt to pass variables to the server | 34fad328e3b424d4e50549dd30060e2150a05b07 | Catalin(ux) M. BOIE | 2021-02-02 16:08:39 |
Send env variable | ce941b5564cb7601d6930b32688f083e22bbb67c | Catalin(ux) M. BOIE | 2021-01-30 10:51:31 |
Prevent a fd leak | e439ecaf5fde8a53c969eadc3b32ec4558e16406 | Catalin(ux) M. BOIE | 2021-01-19 06:40:17 |
More debug | b95edceb2abff793c9d2a19d62b6c1de8aa328bb | Catalin(ux) M. BOIE | 2021-01-16 11:53:51 |
Send first the name and after that the version | b68e3cb967aa6a3edf5b64ac9b66c6fa67a1f990 | Catalin(ux) M. BOIE | 2021-01-16 10:21:57 |
Simplified variables sent | 0f37c2cd6342c8be0f4615c8fe8979d1bb9cce8d | Catalin(ux) M. BOIE | 2021-01-14 04:48:11 |
Added job_id variable | 9ab34e796d0f5494d97d1b9f9fff52e6a9f27e8c | Catalin(ux) M. BOIE | 2020-12-04 17:30:10 |
Create a function to send generic vars and use it | 97fa7f7a9f4af7c9e7bf3579d1437dfc59c29825 | Catalin(ux) M. BOIE | 2020-11-30 17:45:17 |
Wrong lenght passed | c642d9387496543f4fb824fad6cd2590328d83b4 | Catalin(ux) M. BOIE | 2020-11-30 17:33:08 |
Allow sending repo_id | 160f9d2f3957ba5639377e8d5bdc15744dac78a2 | Catalin(ux) M. BOIE | 2020-11-30 13:36:55 |
More debugging | 1b562b79df09000cb40d2e91aa069636e9fd5e55 | Catalin(ux) M. BOIE | 2020-11-27 07:04:43 |
Added support for uid and head | 2c9ae749a048d990ce24aa389439056c8ab0e836 | Catalin(ux) M. BOIE | 2020-11-27 06:29:37 |
Added chmod | 82a9f7db95a0327bd0d97a58a27ce6432fdf6790 | Catalin(ux) M. BOIE | 2020-11-16 18:53:49 |
implemented chown | d3862312d2900e96957c0734b5f27d0851d2a19a | Catalin(ux) M. BOIE | 2020-11-16 18:31:35 |
Lots of improvements | 4953574e14ffba41e05e897fb94771f0ac7bab44 | Catalin(ux) M. BOIE | 2020-11-15 16:46:04 |
Allow verbose debug | cee91423dda669c580b84451d3b846b3e7ef3038 | Catalin(ux) M. BOIE | 2020-11-15 12:11:04 |
Small bug caused by an old way to pack path | ad3501ea5b7b112f0760f5aca247275e974edaff | Catalin(ux) M. BOIE | 2020-11-15 11:59:55 |
Lots of improvements | 9275d4bc7be78518ac7bd2c3aa9cfb946a2969ad | Catalin(ux) M. BOIE | 2020-11-15 10:40:44 |
File | Lines added | Lines deleted |
---|---|---|
rgfs.c | 15 | 10 |
File rgfs.c changed (mode: 100644) (index 9cdd85c..fd316c0) | |||
... | ... | static int rgfs_tls(void) | |
328 | 328 | break; | break; |
329 | 329 | ||
330 | 330 | for (unsigned int i = 0; environ[i]; i++) { | for (unsigned int i = 0; environ[i]; i++) { |
331 | char *p, *k, *v; | ||
331 | char *p, *q, *k, *v; | ||
332 | 332 | ||
333 | if(strncmp(environ[i], "RGFS_", 5) != 0) | ||
333 | q = environ[i]; | ||
334 | if(strncmp(q, "RGFS_", 5) != 0) | ||
334 | 335 | continue; | continue; |
335 | 336 | ||
336 | if (strncmp(environ[i] + 5, "SERVER", 6) == 0) | ||
337 | q += 5; | ||
338 | if (strncmp(q, "SERVER", 6) == 0) | ||
337 | 339 | continue; | continue; |
338 | if (strncmp(environ[i] + 5, "PORT", 4) == 0) | ||
340 | if (strncmp(q, "PORT", 4) == 0) | ||
339 | 341 | continue; | continue; |
340 | if (strncmp(environ[i] + 5, "URL", 3) == 0) | ||
342 | if (strncmp(q, "URL", 3) == 0) | ||
341 | 343 | continue; | continue; |
342 | if (strncmp(environ[i] + 5, "DEBUG", 5) == 0) | ||
344 | if (strncmp(q, "DEBUG", 5) == 0) | ||
343 | 345 | continue; | continue; |
344 | if (strncmp(environ[i] + 5, "LOG", 3) == 0) | ||
346 | if (strncmp(q, "LOG", 3) == 0) | ||
345 | 347 | continue; | continue; |
346 | 348 | ||
347 | p = strchr(environ[i] + 5 + 1, '='); | ||
349 | p = strchr(q + 1, '='); | ||
348 | 350 | if (!p) | if (!p) |
349 | 351 | continue; | continue; |
350 | 352 | ||
351 | k = strdup(environ[i] + 5); | ||
353 | // abc=x | ||
354 | // q = 0 | ||
355 | // p = 3 | ||
356 | k = strndup(q, p - q); | ||
352 | 357 | if (!k) { | if (!k) { |
353 | 358 | xlog("Cannot allocate memory!\n"); | xlog("Cannot allocate memory!\n"); |
354 | 359 | return 1; | return 1; |
355 | 360 | } | } |
356 | 361 | ||
357 | v = strdup(p); | ||
362 | v = strdup(p + 1); | ||
358 | 363 | if (!v) { | if (!v) { |
359 | 364 | xlog("Cannot allocate memory!\n"); | xlog("Cannot allocate memory!\n"); |
360 | 365 | return 1; | return 1; |