Timur

Results 13 comments of Timur

@RedCrazyGhost when working with files, the construction is usually used ``` // Logging to a file. f, _ := os.Create("gin.log") defer f.Close() gin.DefaultWriter = io.MultiWriter(f) ``` I don't want to...

@Alp4ka regular expression for a string in `base64` format

@AntumDeluge @lazka does not work in pipeline Example: add row "127.0.0.1 localhost.example" in /c/windows/system32/drivers/etc/hosts https://github.com/purplesyringa/win-sudo/issues/53 It works! https://github.com/gerardog/gsudo ![изображение](https://github.com/msys2/MSYS2-packages/assets/47992247/212aabf3-bdee-4cc9-8e53-cc1f599e9fd2)

> @AntumDeluge @lazka does not work in pipeline Example: add row "127.0.0.1 localhost.example" in /c/windows/system32/drivers/etc/hosts [purplesyringa/win-sudo#53](https://github.com/purplesyringa/win-sudo/issues/53) > > It works! https://github.com/gerardog/gsudo ![изображение](https://user-images.githubusercontent.com/47992247/261102190-212aabf3-bdee-4cc9-8e53-cc1f599e9fd2.png) Sorry. The case described above works on a...

![изображение](https://github.com/msys2/MSYS2-packages/assets/47992247/0e16241e-bf92-4a41-ac55-3b6e777942e2) I probably need a new version of bash

@sskras maybe it's really the `msys2-runtime` version. I'll try to update. ![изображение](https://github.com/msys2/MSYS2-packages/assets/47992247/615bc352-3fda-4108-a32f-9728fcbadc50)

`pacman -Syuu` didn't help. You may need to update `msys2-w32api-headers`, `msys2-w32api-runtime`, but I've already run `pacman -Syu coreutils` (which also updates w32api among other things).

@sskras run `icalcs` ```sh $ icacls /c/windows/system32/drivers/etc/hosts C:/windows/system32/drivers/etc/hosts NT AUTHORITY\СИСТЕМА:(I)(F) BUILTIN\Администраторы:(I)(F) BUILTIN\Пользователи:(I)(RX) ЦЕНТР ПАКЕТОВ ПРИЛОЖЕНИЙ\ВСЕ ПАКЕТЫ ПРИЛОЖЕНИЙ:(I)(RX) ЦЕНТР ПАКЕТОВ ПРИЛОЖЕНИЙ\ВСЕ ОГРАНИЧЕННЫЕ ПАКЕТЫ ПРИЛОЖЕНИЙ:(I)(RX) Успешно обработано 1 файлов; не удалось обработать...

> Is it the desktop PC (where it fails)? Yes. I checked with a colleague at work, we have computers in the same domain, through `sudo chmod 644 /c/windows/system32/drivers/etc/hosts` writing...

@sskras The only difference in the behavior of the system is that it does not pop up windows when starting programs ![изображение](https://github.com/msys2/MSYS2-packages/assets/47992247/5d1fdae8-3d2b-4b3f-9596-ea6151f709b3) Maybe that's the point?