about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Display default value for /url associated commandsPierre Mazière2020-06-251-5/+9
| | | | | | | | | | The display of commands associated with specific file types and protocols will need to be implemented later, but this requires to use private data of the GKeyFile structure, which can be a maintainability issue on the long term. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Add /url autocompletionPierre Mazière2020-06-251-4/+22
| | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Replace /urlopen with /url and adapt /executablePierre Mazière2020-06-255-33/+249
| | | | | | | | /urlopen is replaced by /url with the following sub commands: /url open <url> /url save <url> [<path>] Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Add string and string list preferences with optionPierre Mazière2020-06-252-1/+89
| | | | | | | | | | | | Where GKeyFile usually use the pref[locale] format to define locale specific translated data, it is here hijacked to be used as pref[option] in order to specialize a preference according to an option: open.url.cmd[pdf] = pdf-viewer open.url.cmd[jpg] = image-viewer Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Refactor cmd_urlopenPierre Mazière2020-06-251-16/+16
| | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Add aesgcm to urls grabberPierre Mazière2020-06-251-1/+1
| | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Start new cycleMichael Vetter2020-06-241-1/+1
|
* Release 0.9.4Michael Vetter2020-06-243-3/+11
|
* Merge pull request #1373 from profanity-im/cygwin-notifyMichael Vetter2020-06-241-3/+4
|\ | | | | Fix gcc warnings for cygwin
| * Fix gcc warnings for cygwinDmitry Podgorny2020-06-241-3/+4
|/ | | | | | | | | | | | | strncpy(3) is not so safe function and can lead to mistakes. For example, strncpy(dest, "Profanity", 10); is redundant and leads to problems when someone changes the source string. Different example is when 3rd argument equals to length of the destination buffer. strncpy(3) doesn't terminate string with '\0' when it truncates. Therefore, the destination string becomes corrupted. Zeroize storage for 'nid', so the last byte remains '\0' in case of truncate.
* Merge pull request #1372 from profanity-im/missed-string-hMichael Vetter2020-06-241-0/+1
|\ | | | | Add missed string.h
| * Add missed string.hDmitry Podgorny2020-06-241-0/+1
|/ | | | strdup(3) requires string.h
* Fix NULL terminated listMichael Vetter2020-06-231-1/+1
| | | | Regards https://github.com/profanity-im/profanity/issues/1367
* Start new cycleMichael Vetter2020-06-191-1/+1
|
* Release 0.9.3Michael Vetter2020-06-193-3/+9
|
* Use shell to start eval_password commandMichael Vetter2020-06-191-5/+1
| | | | | | | | | | | | | | Since https://github.com/profanity-im/profanity/commit/d92c576aa53505d712715b1acc6344af3262c84f we rely on g_spawn_sync(). Which doesn't do variable/glob expansion. For our use of call_external() in opening and URL or avatar this is fine. For getting the password we want to be able to use ~ for our files. Let's use a shell here. Fix https://github.com/profanity-im/profanity/issues/1364
* Merge pull request #1365 from profanity-im/segfaultMichael Vetter2020-06-161-1/+1
|\ | | | | Fix possible segfault in xmpp/message.c
| * Fix possible segfault in xmpp/message.cDmitry Podgorny2020-06-161-1/+1
|/ | | | Check for pointer to be NULL before dereferencing it.
* Start new cycleMichael Vetter2020-06-131-1/+1
|
* Release 0.9.2Michael Vetter2020-06-133-3/+11
|
* Use gnu99 standardMichael Vetter2020-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With recent changes to c99 and -D_POSIX_C_SOURCE=200809L we get the following: openSUSE TW CI sais: ``` Now you can run `make' to build profanity In file included from /usr/include/python2.7/Python.h:8, from src/plugins/python_plugins.c:37: /usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror] 1226 | #define _POSIX_C_SOURCE 200112L | <command-line>: note: this is the location of the previous definition In file included from /usr/include/python2.7/Python.h:8, from src/plugins/python_api.c:37: /usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror] 1226 | #define _POSIX_C_SOURCE 200112L | <command-line>: note: this is the location of the previous definition cc1: all warnings being treated as errors ``` OpenBSD CI sais: ``` cc1: warnings being treated as errors src/database.c: In function 'log_database_get_previous_chat': src/database.c:226: warning: implicit declaration of function 'asprintf' gmake[1]: *** [Makefile:1924: src/database.o] Error 1 gmake[1]: Leaving directory '/home/build/profanity' gmake: *** [Makefile:1211: all] Error 2 ``` Let us use gnu99. Has been proposed before already and is fine. Regards https://github.com/profanity-im/profanity/issues/1357 Regards https://github.com/profanity-im/profanity/pull/1351
* Fix reading/writing linked filesMichael Vetter2020-06-135-4/+5
| | | | | | "base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
* Define POSIX macro to have strdupMichael Vetter2020-06-128-25/+28
| | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* Dont manipulate pointer from getenvMichael Vetter2020-06-121-6/+14
| | | | | | | | | | | | Found this when looking to fix bug https://github.com/profanity-im/profanity/issues/1357 Not sure if it is related. man 3 getenv sais: ``` As typically implemented, getenv() returns a pointer to a string within the environment list. The caller must take care not to modify this string, since that would change the environment of the process. ```
* Start new cycleMichael Vetter2020-06-111-1/+1
|
* Release 0.9.1Michael Vetter2020-06-113-3/+12
|
* Merge pull request #1360 from profanity-im/legacy-authMichael Vetter2020-06-112-1/+19
|\ | | | | Make legacy auth optional
| * Make legacy auth optionalDmitry Podgorny2020-06-112-1/+19
|/ | | | | | | | Some systems don't provide recent libstrophe releases. When older version of libstrophe is detected, don't build legacy auth support. To simplify this patch, report about unsupported legacy auth and keep commands option as is.
* Start new cycleMichael Vetter2020-06-091-1/+1
|
* Release 0.9.0Michael Vetter2020-06-092-5/+5
|
* Improve CHANGELOGMichael Vetter2020-06-091-6/+6
|
* Correct and update manpageMichael Vetter2020-06-091-1/+1
|
* Add 0.9.0 CHANGELOGMichael Vetter2020-06-091-0/+80
|
* Merge pull request #1356 from wstrm/bump-openbsd-6.7Michael Vetter2020-06-061-3/+3
|\ | | | | Bump OpenBSD build to 6.7
| * Bump OpenBSD build to 6.7William Wennerström2020-06-061-3/+3
|/
* Bump libstrophe requirement to 0.9.3Michael Vetter2020-06-051-3/+3
| | | | | legacy auth (ac410445af65b9d332d4606a08ff549672042766) requires libstrophe 0.9.3 because of XMPP_CONN_FLAG_LEGACY_AUTH.
* readme: test new screenshotMichael Vetter2020-06-051-1/+1
|
* Merge pull request #1355 from profanity-im/iss1236Michael Vetter2020-06-0521-46/+234
|\ | | | | Add option for legacy authentication
| * Add option for legacy authenticationDmitry Podgorny2020-06-0521-46/+234
|/ | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* Correctly check for 'expect'Michael Vetter2020-06-041-1/+1
| | | | | The expect library doesnt export 'main'. But it exports (and we use) exp_expectl.
* Add include for waitpid to functionaltestMichael Vetter2020-06-041-0/+1
|
* Merge pull request #1351 from toogley/masterMichael Vetter2020-06-041-1/+1
|\ | | | | Use always c99
| * use always c99; fixes "universal character names" error msgtoogley2020-06-021-1/+1
| | | | | | | | | | | | | | | | | | without this, i receive this error on openbsd 6.7: src/event/server_events.c:1477:19: error: universal character names are only valid in C++ and C99 src/event/server_events.c:1478:19: error: universal character names are only valid in C++ and C99 gmake[1]: *** [Makefile:1925: src/event/server_events.o] Error 1 gmake[1]: Leaving directory '/home/toogley/profanity' gmake: *** [Makefile:1212: all] Error 2
* | Merge pull request #1349 from profanity-im/autotoolsMichael Vetter2020-06-031-2/+18
|\ \ | | | | | | configure.ac: add additional check for libstrophe
| * | Include mesode.h in libmesode test caseMichael Vetter2020-06-031-0/+5
| | | | | | | | | | | | Regards https://github.com/profanity-im/profanity/issues/1334
| * | configure.ac: add additional check for libstropheDmitry Podgorny2020-05-311-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | After the library is found by pkg-config, try to build a simple program to check the installation. The motivation of this check is that the chance that users manually install libstrophe/libmesode is higher than for other libs. Fixes #1334.
* | | Fix memleak againMichael Vetter2020-06-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Memleak was reinroduced in d92c576aa53505d712715b1acc6344af3262c84f It was already fixed in ac5ce105ac08f022d88d7e73dc38f2706d4c44cf But the rebase peetahs rebase ontop of master took the wrong changes. I decided to pull anyways and fix since reviewing/giving feedback without GH probably takes longer.
* | | Merge remote-tracking branch 'peetah/externalCallWithGSpawnSync' intoMichael Vetter2020-06-035-40/+117
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | peetah-external-cmd Merge peetahs external command calling improvements from his mirror at https://framagit.org/peetah/profanity.
| * | | Use external_call to get password via eval_password commandPierre Mazière2020-06-031-26/+24
| | | | | | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | | Get output and error streams from the command spawned by external_call()Pierre Mazière2020-06-034-14/+93
|/ / / | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>